Jstack fails for JBoss with NoSuchSymbolException
atijms May 28, 2010 6:17 AMHi,
I tried to make a stack trace from a JBoss AS 5.1 process running on 64 bits Debian Lenny and Sun JDK 6U19. I however got an exception:
jstack -F 12087 Attaching to process ID 12087, please wait... sun.jvm.hotspot.debugger.NoSuchSymbolException: Could not find symbol "gHotSpotVMTypeEntryTypeNameOffset" in any of the known library names (libjvm.so, libjvm_g.so, gamma_g) at sun.jvm.hotspot.HotSpotTypeDataBase.lookupInProcess(HotSpotTypeDataBase.java:390) at sun.jvm.hotspot.HotSpotTypeDataBase.getLongValueFromProcess(HotSpotTypeDataBase.java:371) at sun.jvm.hotspot.HotSpotTypeDataBase.readVMTypes(HotSpotTypeDataBase.java:102) at sun.jvm.hotspot.HotSpotTypeDataBase.<init>(HotSpotTypeDataBase.java:85) at sun.jvm.hotspot.bugspot.BugSpotAgent.setupVM(BugSpotAgent.java:568) at sun.jvm.hotspot.bugspot.BugSpotAgent.go(BugSpotAgent.java:494) at sun.jvm.hotspot.bugspot.BugSpotAgent.attach(BugSpotAgent.java:332) at sun.jvm.hotspot.tools.Tool.start(Tool.java:163) at sun.jvm.hotspot.tools.JStack.main(JStack.java:86) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.tools.jstack.JStack.runJStackTool(JStack.java:118) at sun.tools.jstack.JStack.main(JStack.java:84) Debugger attached successfully. jstack requires a java VM process/core!
ps shows the following:
jboss 12056 0.0 0.0 10156 1344 pts/0 S 09:33 0:00 /bin/sh /opt/jboss/bin/run.sh -b 0.0.0.0 jboss 12087 38.3 62.7 7573264 3962268 pts/0 Sl 09:33 51:22 /opt/jdk/bin/java -Dprogram.name=run.sh -server -Xms1542m -Xmx4626m -XX:MaxPermSize=1542m -XX:+UseCompressedOops -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Djava.endorsed.dirs=/opt/jboss/lib/endorsed -classpath /opt/jboss/bin/run.jar:/opt/jdk/lib/tools.jar org.jboss.Main -b 0.0.0.0
At the moment JBoss AS itself is running fine. Using jstack without the -F option also doesn't work.
Anyone has any idea of what could be wrong here?