Ubuntu下jmap,jinfo Can't attach to the process

1.错误

Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process
sun.jvm.hotspot.debugger.DebuggerException: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process




解决方案:

1修改/etc/sysctl.d/10-ptrace.conf文件如下:

 
 
< kernel.yama.ptrace_scope = 1
---
> kernel.yama.ptrace_scope = 0
(即将1改成0)
2重启
 
 
 
 


Oracle Bug ID:http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7050524

猜你喜欢

转载自blog.csdn.net/tlk20071/article/details/77867101