Mac下使用jinfo -flags报错

来源:2-2 查看JVM运行时参数

qq_三文鱼_11

2018-07-28

macOS下,jinfo -flag param processID可以正常工作,但是使用jinfo -flags processID就报错

Attaching to process ID 22493, please wait...

Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach symbolicator to the process

sun.jvm.hotspot.debugger.DebuggerException: sun.jvm.hotspot.debugger.DebuggerException: Can't attach symbolicator to the process

at sun.jvm.hotspot.debugger.bsd.BsdDebuggerLocal$BsdDebuggerLocalWorkerThread.execute(BsdDebuggerLocal.java:169)

at sun.jvm.hotspot.debugger.bsd.BsdDebuggerLocal.attach(BsdDebuggerLocal.java:287)

at sun.jvm.hotspot.HotSpotAgent.attachDebugger(HotSpotAgent.java:671)

at sun.jvm.hotspot.HotSpotAgent.setupDebuggerDarwin(HotSpotAgent.java:659)

at sun.jvm.hotspot.HotSpotAgent.setupDebugger(HotSpotAgent.java:341)

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.JInfo.main(JInfo.java:138)

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.jinfo.JInfo.runTool(JInfo.java:108)

at sun.tools.jinfo.JInfo.main(JInfo.java:76)

Caused by: sun.jvm.hotspot.debugger.DebuggerException: Can't attach symbolicator to the process

at sun.jvm.hotspot.debugger.bsd.BsdDebuggerLocal.attach0(Native Method)

at sun.jvm.hotspot.debugger.bsd.BsdDebuggerLocal.access$100(BsdDebuggerLocal.java:65)

at sun.jvm.hotspot.debugger.bsd.BsdDebuggerLocal$1AttachTask.doit(BsdDebuggerLocal.java:278)

at sun.jvm.hotspot.debugger.bsd.BsdDebuggerLocal$BsdDebuggerLocalWorkerThread.run(BsdDebuggerLocal.java:144)


写回答

2回答

若鱼1919

2018-07-30

https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8160376 这个好像是JDK的一个bug,换高版本试试

0
0

若鱼1919

2018-07-28

回头我找一台mac试试,手头只有windows和linux

0
0

Java生产环境下性能监控与调优详解

系统掌握线上性能监控与 GC调优,线上代码调试

2373 学习 · 262 问题

查看课程