求助>jmap报InvocationTargetException>
1回复

jmap报InvocationTargetException



容器中使用jmap命令报错,但是我用arthas的heapdump命令就可以正常生成dump,请知道的同学给解惑一下。
image.png

jdk版本:1.8
jdk信息:OpenJDK 64-Bit Server VM

566 阅读
请先登录,再评论

回复列表

图片没传上去,贴一下报错信息
Attaching to process ID 1, please wait...
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.tools.jmap.JMap.runTool(JMap.java:201)
at sun.tools.jmap.JMap.main(JMap.java:130)
Caused by: java.lang.UnsatisfiedLinkError: sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.init0()V
at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.init0(Native Method)
at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.<clinit>(LinuxDebuggerLocal.java:609)
at sun.jvm.hotspot.HotSpotAgent.setupDebuggerLinux(HotSpotAgent.java:607)
at sun.jvm.hotspot.HotSpotAgent.setupDebugger(HotSpotAgent.java:337)
at sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:304)
at sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:140)
at sun.jvm.hotspot.tools.Tool.start(Tool.java:185)
at sun.jvm.hotspot.tools.Tool.execute(Tool.java:118)
at sun.jvm.hotspot.tools.PMap.main(PMap.java:72)