我正在尝试在macos中获得线程转储。详情如下:
abubakars macbook pro:~abubakarkhan$ps-ef | grep inte 501 276 1 0 11:41上午??20:58.96/applications/intellij idea ce.app/contents/macos/idea-psn\u 0\u 65552 501 494 276 0 11:42am??0:02.32/applications/intellij idea ce.app/contents/bin/fsnotifier 501 14586 359 0 6:44pm ttys000 0:00.00 grep inte 501 568 276 0 11:43am ttys002 0:00.02/bin/bash--rcfile/applications/intellij idea ce.app/contents/plugins/terminal/jediterm-bash.in-i 501 593 276 0 11:43am ttys003 0:00.02/bin/bash--rcfile/applications/intellij ideace.app/contents/plugins/terminal/jediterm-bash.in-i 501 617 276 0 11:43am ttys004 0:00.02/bin/bash--rcfile/applications/intellij idea ce.app/contents/plugins/terminal/jediterm-bash.in-i 501 785 276 0 11:45am ttys005 0:00.02/bin/bash--rcfile/applications/intellij idea ce.app/contents/plugins/terminal/jediterm-bash.in-i
abubakars macbook pro:~abubakarkhan$sudo jstack-f 276美元
正在连接进程id 276,请稍候。。。错误:attach:task\ for\ pid(276)failed:'(os/kern)failure'(5)附加到进程时出错:sun.jvm.hotspot.debugger.debuggerexception:无法附加到进程。可能是由于pid不正确或缺少权限造成的。sun.jvm.hotspot.debugger.debuggerexception:sun.jvm.hotspot.debugger.debuggerexception:无法附加到进程。可能是由于pid不正确或缺少权限造成的。在sun.jvm.hotspot.debugger.bsd.bsddebuggerlocal$bsddebuggerlocalworkerthread.execute(bsddebuggerlocal)。java:169)在sun.jvm.hotspot.debugger.bsd.bsddebuggerlocal.attach(bsddebuggerlocal。java:287)在sun.jvm.hotspot.hotspotagent.attachdebugger(热点代理)中。java:671)在sun.jvm.hotspot.hotspotagent.setupdebuggerdarwin(hotspotagent。java:659)在sun.jvm.hotspot.hotspotagent.setupdebugger(热点代理)。java:341)在sun.jvm.hotspot.hotspotagent.go(热点代理)。java:304)在sun.jvm.hotspot.hotspogent.attach(hotspogent。java:140)在sun.jvm.hotspot.tools.tool.start(tool。java:185)在sun.jvm.hotspot.tools.tool.execute(tool。java:118)在sun.jvm.hotspot.tools.jstack.main(jstack。java:92)在sun.reflect.nativemethodaccessorimpl.invoke0(本机方法)位于sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl)。java:62)在sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl。java:43)在java.lang.reflect.method.invoke(方法。java:498)在sun.tools.jstack.jstack.runjstacktool(jstack。java:1
暂无答案!
目前还没有任何答案,快来回答吧!