Error running jstack on linux 64 bit (Java 5.0 update 10)

I need to debug a problem in production and jstack is not helping.. Please help!

Thanks,

Sami

Linux version:

Linux 2.6.15-1.2054_FC5 #1 SMP Tue Mar 14 15:48:20 EST 2006 x86_64 x86_64 x86_64 GNU/Linux

Java version:

java version "1.5.0_10"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)

Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_10-b03, mixed mode)

Command line:

/usr/java/jdk/bin/java -server -Xmx2g -Xmn2g -Xss128k -XX:MaxPermSize=128m -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/usr/tomcat/current/conf/logging.properties -Djava.endorsed.dirs=/usr/tomcat/current/common/endorsed -classpath :/usr/tomcat/current/bin/bootstrap.jar:/usr/tomcat/current/bin/commons-logging-api.jar -Dcatalina.base=/usr/tomcat/current -Dcatalina.home=/usr/tomcat/current -Djava.io.tmpdir=/usr/tomcat/current/temp org.apache.catalina.startup.Bootstrap start

When I run jstack I get the following over and over:

Error occurred during stack walking:

sun.jvm.hotspot.debugger.DebuggerException: sun.jvm.hotspot.debugger.DebuggerException: get_thread_regs failed for a lwp

at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$LinuxDebuggerLocalWorkerThread.execute(LinuxDebuggerLocal.java:134)

at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.getThreadIntegerRegisterSet(LinuxDebuggerLocal.java:437)

at sun.jvm.hotspot.debugger.linux.LinuxThread.getContext(LinuxThread.java:48)

at sun.jvm.hotspot.runtime.linux_amd64.LinuxAMD64JavaThreadPDAccess.getCurrentFrameGuess(LinuxAMD64JavaThreadPDAccess.java:75)

at sun.jvm.hotspot.runtime.JavaThread.getCurrentFrameGuess(JavaThread.java:252)

at sun.jvm.hotspot.runtime.JavaThread.getLastJavaVFrameDbg(JavaThread.java:211)

at sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:50)

at sun.jvm.hotspot.tools.JStack.run(JStack.java:41)

at sun.jvm.hotspot.tools.Tool.start(Tool.java:204)

at sun.jvm.hotspot.tools.JStack.main(JStack.java:58)

Caused by: sun.jvm.hotspot.debugger.DebuggerException: get_thread_regs failed for a lwp

at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.getThreadIntegerRegisterSet0(Native Method)

at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.access$800(LinuxDebuggerLocal.java:34)

at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$1GetThreadIntegerRegisterSetTask.doit(LinuxDebuggerLocal.java:431)

at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$LinuxDebuggerLocalWorkerThread.run(LinuxDebuggerLocal.java:109)

[2630 byte] By [sshalabia] at [2007-11-14]
# 1
Hi Sami,We found the same since upgrading from Java 1.4 to Java 5 on 64bit Opteron systems running Linux (RHEL 4.3 and up).jstack seems to work on 64bit machines as from Java 6 onwards (in our test cases). Is that an option for you?Ollie
OllieCooka at 2007-7-8 > top of java,Core,Monitoring & Management...
# 2
This is a known problem. Bug ID is : 6494722. It will be fixed in nextupdate release. This problem does not exist on 6.0 version.
swamyva at 2007-7-8 > top of java,Core,Monitoring & Management...