附加到进程时出错:sun.jvm.hotspot.debugger.DebuggerException: 无法打开二进制文件
当我使用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
我已通过更新解决了另一个错误()。DebuggerException: Can't attach to the process
kernel.yama.ptrace_scope = 0