When I use jmap to get the heap info about a process, I got error like that:
(当我使用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
OS: Ubuntu 14.04
(操作系统:Ubuntu 14.04)
I have solved another error ( DebuggerException: Can't attach to the process
) by updating kernel.yama.ptrace_scope = 0
.
(我通过更新kernel.yama.ptrace_scope = 0
解决了另一个错误( DebuggerException: Can't attach to the process
)。)
See: https://bugs.openjdk.java.net/browse/JDK-7050524
(参见: https : //bugs.openjdk.java.net/browse/JDK-7050524)
ask by infraio translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…