Once you have obtained a core file, run the jstack and jpmap Java tools on the file.
Run the jstack utility as follows:
# jstack process-ID |
For example, the jstack utility creates the following output:
# jstack 8393 Attaching to process ID 8393, please wait... Debugger attached successfully. Server compiler detected. JVM version is 1.5.0_03-b07 Thread t@1: (state = BLOCKED) Thread t@42: (state = IN_NATIVE) - sun.nio.ch.ServerSocketChannelImpl.accept0(java.io.FileDescriptor, \ java.io.FileDescriptor, java.net.InetSocketAddress[]) (Interpreted frame) - sun.nio.ch.ServerSocketChannelImpl.accept0(java.io.FileDescriptor, \ java.io.FileDescriptor, java.net.InetSocketAddress[]) (Interpreted frame) - sun.nio.ch.ServerSocketChannelImpl.accept() @bci=130, line=145 \ (Interpreted frame) - com.sun.directory.proxy.extensions.ExtendedTCPClientListener.run() \ @bci=267, line=190 (Interpreted frame) Thread t@41: (state = IN_NATIVE) - sun.nio.ch.ServerSocketChannelImpl.accept0(java.io.FileDescriptor, \ java.io.FileDescriptor, java.net.InetSocketAddress[]) (Interpreted frame) - sun.nio.ch.ServerSocketChannelImpl.accept0(java.io.FileDescriptor, \ java.io.FileDescriptor, java.net.InetSocketAddress[]) (Interpreted frame) - sun.nio.ch.ServerSocketChannelImpl.accept() @bci=130, line=145 \ (Interpreted frame) - com.sun.directory.proxy.extensions.ExtendedTCPClientListener.run() \ @bci=267, line=190 (Interpreted frame) |