How to use jdb to parse coredump file

There is a coredump file generated on one computer. But when I change to another machine (which has the same java version) use the same command to parse, it doesn't work. the command is given below,

db -connect sun.jvm.hotspot.jdi.SACoreAttachingConnector:javaExecutable=/home/xxxx/app/jdk1.6.0_31/bin/java,core=core.java.1409350847.30890 

      

and the error message:

java.io.IOException at sun.jvm.hotspot.jdi.SACoreAttachingConnector.attach (SACoreAttachingConnector.java:139) at com.sun.tools.example.debug.tty.VMConnection.attachTarget (VMConnection.java:358) at com. sun.tools.example.debug.tty.VMConnection.open (VMConnection.java:168) at com.sun.tools.example.debug.tty.Env.init (Env.java:64) at com.sun.tools. example.debug.tty.TTY.main (TTY.java:1010)

Called by: java.lang.reflect.InvocationTargetException on sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) on sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.javaokeImage.plating: 39) on auto sun.reflect.DelegorccessImating: 39) on auto sun.reflect.Delegor 25) at java.lang.reflect.Method.invoke (Method.java:597) at sun.jvm.hotspot.jdi.SACoreAttachingConnector.createVirtualMachine (SACoreAttachingConnector.java:96) at sun.jvm.hotspot.jdi.SACoreAttachingConnector (SACoreAttachingConnector.java:124) ... 4 more

Causes: sun.jvm.hotspot.debugger.DebuggerException: Doesn't appear to be a HotSpot VM (could not find symbol "gHotSpotVMTypes" in remote process) at sun.jvm.hotspot.HotSpotAgent.setupVM (HotSpotAgent.java:400) at sun.jvm.hotspot.HotSpotAgent.go (HotSpotAgent.java:315) at sun.jvm.hotspot.HotSpotAgent.attach (HotSpotAgent.java:174) at sun.jvm.hotspot.jdi.VirtualMachineImpl.createFirtualCurrent 206) ... 10 more

who can tell me why? Many thanks.

+3


source to share





All Articles