Help - ThreadDump issue with jstack <PID>
843810Nov 22 2005 — edited Nov 22 2005Hello,
I am not getting thread dump properly in jdk1.5 when I use 'jstack <PID>' I get the below exception "sun.jvm.hotspot.debugger.DebuggerException: sun.jvm.hotspot.debugger.DebuggerException: get_thread_regs failed for a lwp" in the console in the Linux ES and Redhat.
I set LD_ASSUME_KERNEL=2.4.1 to avoid occasional jvm crash problem I had previously. ( if I do not set this LS_ASSUME_KERNEL , I get proper Thread Dump)
After Taking Thread Dump my application ( server) is not responding and I can not kill the server using Ctrl - C or shutdown scripts.
The JAVA processes listed in 'ps -ef' is not listed for if I run 'jps'' this process is not getting killed even if I run ''kill -9 <PID>''
I have to restart the machine to run the server again or manually clean all the resources to run it again.
I do not have this problem if I do not set LD_ASSUME_KERNEL
Anybody has similar problem ? Anybody can help or give some information about where to look of solution/ root cause.
Thread Dump I got is :
Caused by: sun.jvm.hotspot.debugger.DebuggerException: get_thread_regs failed for a lwp
at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.getThreadIntegerRegisterSet0(Native Meth
od)
at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.access$800(LinuxDebuggerLocal.java:34)
at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$1GetThreadIntegerRegisterSetTask.doit(Li
nuxDebuggerLocal.java:431)
at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$LinuxDebuggerLocalWorkerThread.run(Linux
DebuggerLocal.java:109)
sun.jvm.hotspot.debugger.DebuggerException: sun.jvm.hotspot.debugger.DebuggerException: get_thread_re
gs failed for a lwp
at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$LinuxDebuggerLocalWorkerThread.execute(L
inuxDebuggerLocal.java:134)
at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.getThreadIntegerRegisterSet(LinuxDebugge
rLocal.java:437)
at sun.jvm.hotspot.debugger.linux.LinuxThread.getContext(LinuxThread.java:48)
at sun.jvm.hotspot.runtime.linux_x86.LinuxX86JavaThreadPDAccess.getCurrentFrameGuess(LinuxX86
JavaThreadPDAccess.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:42)
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)
Thanks,
VASU