Error connecting to process: sun.jvm.hotspot.debugger.DebuggerException: cannot open binary

When I use jmap to get process information, I get this error:

$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 solved one more error ( DebuggerException: Can't attach to the process) by updating kernel.yama.ptrace_scope = 0.

See: https://bugs.openjdk.java.net/browse/JDK-7050524.

+9
source share
2 answers

I ran into the same problem, however, when I'd the suright user with the appropriate permissions, the problem disappeared.

+17
source

, , pid.

, , jps pids;).

+4

Source: https://habr.com/ru/post/1649842/


All Articles