4

在一台机器上创建了一个 coredump 文件,但是当我将它移动到另一台机器(具有相同的 java 版本)时,使用相同的命令进行分析,它失败了。命令如下所示,

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

错误信息是:

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

原因:在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 在 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 在
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:39) 的 java.lang.reflect.InvocationTargetException: 25) 在 sun.jvm.hotspot.jdi.SACoreAttachingConnector.createVirtualMachine(SACoreAttachingConnector.java:96) 在 sun.jvm.hotspot.jdi.SACoreAttachingConnector.attach 的 java.lang.reflect.Method.invoke(Method.java:597) (SACoreAttachingConnector.java:124) ... 还有 4 个

原因:sun.jvm.hotspot.debugger.DebuggerException:在 sun.jvm.hotspot.HotSpotAgent.setupVM(HotSpotAgent.java:400 中似乎不是 HotSpot VM(在远程进程中找不到符号“gHotSpotVMTypes”) ) 在 sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:315) 在 sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:174) 在 sun.jvm.hotspot.jdi.VirtualMachineImpl.createVirtualMachineForCorefile(VirtualMachineImpl. java:206) ... 10 更多

谁能告诉我为什么?非常感谢。

4

0 回答 0