ddusnoki / jvmtop

Automatically exported from code.google.com/p/jvmtop
0 stars 0 forks source link

UnsatisfiedLinkError #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Environment is Windows machine running IBM WebSphere8 64-bit.
2. Execute jvmtop against java pid.

What is the expected output? What do you see instead?

==> I get the following error ::

Exception in thread "main" java.lang.UnsatisfiedLinkError: 
sun/misc/Perf.registerNatives()V
        at sun.misc.Perf.<clinit>(Perf.java:531)
        at java.lang.J9VMInternals.initializeImpl(Native Method)
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:205)
        at sun.misc.Perf$GetPerfAction.run(Perf.java:92)
        at java.security.AccessController.doPrivileged(AccessController.java:203)
        at sun.jvmstat.perfdata.monitor.protocol.local.PerfDataBuffer.<clinit>(PerfDataBuffer.java:44)
        at java.lang.J9VMInternals.initializeImpl(Native Method)
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:205)
        at sun.jvmstat.perfdata.monitor.protocol.local.LocalMonitoredVm.<init>(LocalMonitoredVm.java:63)
        at sun.jvmstat.perfdata.monitor.protocol.local.MonitoredHostProvider.getMonitoredVm(MonitoredHostProvider.java:72)
        at sun.jvmstat.perfdata.monitor.protocol.local.MonitoredHostProvider.getMonitoredVm(MonitoredHostProvider.java:62)
        at com.jvmtop.openjdk.tools.LocalVirtualMachine.getMonitoredVMs(LocalVirtualMachine.java:201)
        at com.jvmtop.openjdk.tools.LocalVirtualMachine.getAllVirtualMachines(LocalVirtualMachine.java:152)
        at com.jvmtop.openjdk.tools.LocalVirtualMachine.getLocalVirtualMachine(LocalVirtualMachine.java:263)
        at com.jvmtop.VMDetailView.<init>(VMDetailView.java:23)
        at com.jvmtop.JvmTop.main(JvmTop.java:36)

What version of the product are you using? On what operating system?

==> jvmtop 0.3 on Windows 7 64-bit

Please provide any additional information below.

==> IBM JDK used to run WebSphere & execute jvmtop is the same :

java version "1.6.0"
Java(TM) SE Runtime Environment (build pwa6460_26fp1-20110419_01)
IBM J9 VM (build 2.6, JRE 1.6.0 Windows 7 amd64-64 20110418_80450 (JIT enabled, 
AOT enabled)
J9VM - R26_Java626_GA_FP1_20110418_1915_B80450
JIT  - r11_20110215_18645ifx8
GC   - R26_Java626_GA_FP1_20110418_1915_B80450
J9CL - 20110418_80450)
JCL  - 20110401_01

Original issue reported on code.google.com by stev...@gmail.com on 4 Apr 2013 at 4:41

GoogleCodeExporter commented 9 years ago
Thank you for the bug report.
This is one of the IBM JDK compatibility issues in jvmtop. This also happens on 
Linux but not on Solaris (where J9 is not used).

After having a quick look at this I realized that this bug will not be easy to 
fix because I currently do not see any IBM J9 library (which is part of the 
JDK) which can be linked to the native sun/misc/Perf.registerNatives() method.
This seems to result in that this class cannot be used in IBM J9 and should 
never been accessed. If this is true then this error might be an internal bug 
of IBM J9 and/or an incompatibility between the sun.jvmstat.* API and the IBM 
J9.

Any help is welcome here.

Original comment by patric.r...@gmail.com on 4 Apr 2013 at 7:47

GoogleCodeExporter commented 9 years ago
Thanks for the info - I will do some digging and see what I find - and if i 
find anything useful I will post it here...

BTW - I have only logged 2 bugs and never said thank you for the application... 
Where I have used jvmtop successfully, it has helped me a great deal in 
debugging performance issues within enterprise java...

Original comment by stev...@gmail.com on 5 Apr 2013 at 8:54

GoogleCodeExporter commented 9 years ago
jvmtop 0.4 is now available.
Can you please test if you are still seeing this issue with this release?

Thank you for your compliments - bug reports and feature requests are always 
welcome!

Original comment by patric.r...@gmail.com on 5 Apr 2013 at 2:35

GoogleCodeExporter commented 9 years ago

Original comment by patric.r...@gmail.com on 13 May 2013 at 12:14