Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
864 views
in Technique[技术] by (71.8m points)

java - 附加到进程时出错:sun.jvm.hotspot.debugger.DebuggerException:无法打开二进制文件(Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: cannot open binary file)

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

我面临着同样的问题,但是当我su “d到具有相关权限正确的用户的问题就走了。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...