如何在mac上解决ptrace_scope

时间:2018-02-02 08:17:21

标签: java macos jvm jmap

我正在使用mac os 10.13.2

当我执行jmap时出现错误:

➜  ~ jps
34819
35626 Launcher
35627 DataportalApplication
35899 Jps
➜  ~ ps -efj 35627
  UID   PID  PPID   C STIME   TTY           TIME CMD              USER  PGID   SESS JOBC STAT   TT
  501 35627 34819   0  3:16下午 ??         0:09.48 /Library/Java/Ja mac  34819      0    1 S      ??
➜  ~ su mac
Password:
➜  ~ jmap -heap 35627
Attaching to process ID 35627, 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)

很多Dalao说su'对具有相关权限的正确用户问题消失了。 我试过这样,但它没有用。

0 个答案:

没有答案