mss / jvmtop

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

ClassNotFoundException with OpenJDK #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. [gufei.wzy@v101170.sqa.cm4 ~]$ sudo -u admin sh ./jvmtop.sh 22507

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

I got these exceptions and the process terminated.

java.lang.RuntimeException: java.lang.ClassNotFoundException: 
com.ibm.lang.management.OperatingSystemMXBean
        at com.jvmtop.openjdk.tools.ProxyClient.getProcessCpuTime(ProxyClient.java:1100)
        at com.jvmtop.VMInfo.updateInternal(VMInfo.java:252)
        at com.jvmtop.VMInfo.update(VMInfo.java:239)
        at com.jvmtop.VMInfo.<init>(VMInfo.java:126)
        at com.jvmtop.VMInfo.attachToVM(VMInfo.java:188)
        at com.jvmtop.VMInfo.processNewVM(VMInfo.java:146)
        at com.jvmtop.VMDetailView.<init>(VMDetailView.java:26)
        at com.jvmtop.JvmTop.main(JvmTop.java:35)
Caused by: java.lang.ClassNotFoundException: 
com.ibm.lang.management.OperatingSystemMXBean
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at com.jvmtop.openjdk.tools.ProxyClient.getProcessCpuTime(ProxyClient.java:1089)
        ... 7 more
java.lang.RuntimeException: java.lang.ClassNotFoundException: 
com.ibm.lang.management.OperatingSystemMXBean
        at com.jvmtop.openjdk.tools.ProxyClient.getProcessCpuTime(ProxyClient.java:1100)
        at com.jvmtop.VMInfo.updateInternal(VMInfo.java:252)
        at com.jvmtop.VMInfo.update(VMInfo.java:239)
        at com.jvmtop.VMDetailView.printView(VMDetailView.java:41)
        at com.jvmtop.JvmTop.run(JvmTop.java:70)
        at com.jvmtop.JvmTop.main(JvmTop.java:35)
Caused by: java.lang.ClassNotFoundException: 
com.ibm.lang.management.OperatingSystemMXBean
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at com.jvmtop.openjdk.tools.ProxyClient.getProcessCpuTime(ProxyClient.java:1089)
        ... 5 more

 JvmTop 0.5.0 alpha (expect bugs)  amd64,  2 cpus, Linux 2.6.18-16
 http://code.google.com/p/jvmtop

 PID 22507: org.jboss.Main 
 ARGS: -b 0.0.0.0 -Djboss.server.home.dir=/home/admin/zeus/.default -Djbos[...]
 VMARGS: -Dprogram.name=run.sh -Xms1280m -Xmx1280m -XX:NewSize=320m -XX:Ma[...]
 VM: Sun Microsystems Inc. OpenJDK (Taobao) 64-Bit Server VM 1.6.0_32
 UP: 23: 8m  #THR: 169  #THRPEAK: 172  #THRCREATED: 153321 USER: admin       
 GC-Time:  0: 0m   #GC-Runs: 0         #TotalLoadedClasses: 0       
 CPU:  0.00% GC:  0.00% HEAP: 285m /1265m NONHEAP:  98m / 304m

  TID   NAME                                    STATE    CPU  TOTALCPU BLOCKEDBY
 Note: Only top 10 threads (according cpu load) are shown!
java.lang.RuntimeException: java.lang.ClassNotFoundException: 
com.ibm.lang.management.OperatingSystemMXBean
        at com.jvmtop.openjdk.tools.ProxyClient.getProcessCpuTime(ProxyClient.java:1100)
        at com.jvmtop.VMInfo.updateInternal(VMInfo.java:252)
        at com.jvmtop.VMInfo.update(VMInfo.java:239)
        at com.jvmtop.VMDetailView.printView(VMDetailView.java:41)
        at com.jvmtop.JvmTop.run(JvmTop.java:70)
        at com.jvmtop.JvmTop.main(JvmTop.java:35)
Caused by: java.lang.ClassNotFoundException: 
com.ibm.lang.management.OperatingSystemMXBean
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at com.jvmtop.openjdk.tools.ProxyClient.getProcessCpuTime(ProxyClient.java:1089)
        ... 5 more
Exception in thread "main" java.lang.RuntimeException: 
java.lang.ClassNotFoundException: com.ibm.lang.management.OperatingSystemMXBean
        at com.jvmtop.openjdk.tools.ProxyClient.getProcessCpuTime(ProxyClient.java:1100)
        at com.jvmtop.VMDetailView.printView(VMDetailView.java:145)
        at com.jvmtop.JvmTop.run(JvmTop.java:70)
        at com.jvmtop.JvmTop.main(JvmTop.java:35)
Caused by: java.lang.ClassNotFoundException: 
com.ibm.lang.management.OperatingSystemMXBean
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at com.jvmtop.openjdk.tools.ProxyClient.getProcessCpuTime(ProxyClient.java:1089)
        ... 3 more

What version of the product are you using? On what operating system?
[gufei.wzy@v101170.sqa.cm4 ~]$ java -version
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.4) (rhel-1.24.1.10.4.el5-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)

Please provide any additional information below.
the jvm process with pid 22507 was running by user admin

[gufei.wzy@v101170.sqa.cm4 ~]$ ps aux|grep 22507      
admin    22507  0.1 21.6 2418528 853228 ?      Sl   May27   2:07 
/opt/taobao/java/bin/java -Dprogram.name=run.sh -server -Xms1280m -Xmx1280m 
-XX:NewSize=320m -XX:MaxNewSize=320m -XX:PermSize=96m -XX:MaxPermSize=256m -cp 
/home/admin/hadoop/hadoop-0.19.1/conf -Djava.awt.headless=true -Xdebug 
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8787 
-Djava.awt.headless=true -Dsun.net.client.defaultConnectTimeout=10000 
-Dsun.net.client.defaultReadTimeout=30000 -Djava.awt.headless=true 
-Dcom.sun.management.jmxremote.port=1090 
-Dcom.sun.management.jmxremote.ssl=false 
-Dcom.sun.management.jmxremote.authenticate=true 
-Dcom.sun.management.jmxremote.password.file=/home/admin/zeus/conf/jmxremote.pas
sword -Djava.rmi.server.hostname=v101170.sqa.cm4 
-javaagent:/home/admin/depend/classAgent.jar 
-javaagent:/home/admin/zeus/dtd/btrace/build/btrace-agent.jar=script=/home/admin
/zeus/dtd/btrace/build/TrackDTDXSDLoad.class,scriptOutputFile=/home/admin/zeus/l
ogs/dtdxsdloadstatus.log -Djava.net.preferIPv4Stack=true 
-Djava.endorsed.dirs=/opt/taobao/jboss/lib/endorsed -classpath 
/home/minyi/tcc/lib/tcc-emma-1.0-SNAPSHOT.jar:/opt/taobao/jboss/bin/run.jar:/opt
/taobao/java/lib/tools.jar org.jboss.Main -b 0.0.0.0 
-Djboss.server.home.dir=/home/admin/zeus/.default 
-Djboss.server.home.url=file:/home/admin/zeus/.default

Original issue reported on code.google.com by Goofy...@gmail.com on 28 May 2013 at 7:16

GoogleCodeExporter commented 9 years ago
Confirmed.
Thanks for this bug report.

Original comment by patric.r...@gmail.com on 29 May 2013 at 2:23

GoogleCodeExporter commented 9 years ago

Original comment by patric.r...@gmail.com on 29 May 2013 at 2:23

GoogleCodeExporter commented 9 years ago
Can you verify if jvmtop 0.5.1 will fix this problem?

Original comment by patric.r...@gmail.com on 29 May 2013 at 3:54

GoogleCodeExporter commented 9 years ago
Marking as resolved due to fix provided in 0.5.1
Please feel free to reopen in case this issue is occurring again.

Original comment by patric.r...@gmail.com on 6 Jun 2013 at 4:07