debuggerexception专题

Error attaching to process sun.jvm.hotspot.debugger.DebuggerException cannot open binary file

Error attaching to process sun.jvm.hotspot.debugger.DebuggerException cannot open binary file? 问题描述 使用 jinfo jmap 查看java进程时候出现以下错误: 出错描述:使用jinfo查看jvm参数时候报错 Error attaching to process sun.jvm.hots

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

背景: 在进行压测使用jmap命令插查看线程的jvm信息时,jmap -heap pid 命令执行后报错了 报错内容如下: 1、百度以为是Linux系统加入了 ptrace-scope 机制,防止用户访问正在执行的进程的内存,而 jinfo,jmap 这些调试类工具本身就是利用 ptrace 来获取执行进程的内存等信息。 2、然后根据提示查看了服务器上的这个 ptrace-scope是不是开启的