根据java core文件打印java堆栈信息:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# jstack /usr/bin/java ../core.java Attaching to core ../core.java from executable /usr/bin/java, please wait... Debugger attached successfully. Server compiler detected. JVM version is 25.45-b02 Deadlock Detection: No deadlocks found. Thread 21928: (state = BLOCKED) Thread 21927: (state = BLOCKED) - java.lang.Object.wait(long) @bci=0 (Interpreted frame) - java.lang.ref.ReferenceQueue.remove(long) @bci=59, line=143 (Interpreted frame) - java.lang.ref.ReferenceQueue.remove() @bci=2, line=164 (Interpreted frame) - java.lang.ref.Finalizer$FinalizerThread.run() @bci=36, line=209 (Interpreted frame) Thread 21926: (state = BLOCKED) - java.lang.Object.wait(long) @bci=0 (Interpreted frame) - java.lang.Object.wait() @bci=2, line=502 (Interpreted frame) - java.lang.ref.Reference$ReferenceHandler.run() @bci=36, line=157 (Interpreted frame) Thread 21896: (state = BLOCKED) - java.lang.Thread.sleep(long) @bci=0 (Interpreted frame) - Hello.main(java.lang.String[]) @bci=11, line=4 (Interpreted frame) |