When I use jmap to get the heap info about a process, I got error like that:
$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
OS: Ubuntu 14.04
I have solved another error (DebuggerException: Can't attach to the process
) by updating kernel.yama.ptrace_scope = 0
.