当我使用jmap获取一个进程的堆信息时,出现了如下错误:
$jmap -heap process_id
Attaching to process ID process_id, please wait...
Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: cannot open binary
file
sun.jvm.hotspot.debugger.DebuggerException: sun.jvm.hotspot.debugger.DebuggerException:
cannot open binary file
操作系统:Ubuntu 14.04
我通过更新 kernel.yama.ptrace_scope = 0
解决了另一个错误(DebuggerException: Can't attach to the process
)。