jmap在ubuntu上DebuggerException: Can't attach to the process

解决:

临时:

1.echo 0 >/proc/sys/kernel/yama/ptrace_scope

永久:

2.修改 /etc/sysctl.d/10-ptrace.conf,设置kernel.yama.ptrace_scope=0

 

 

参考:http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7050524

posted @ 2015-11-23 14:10  predisw  阅读(1029)  评论(0编辑  收藏  举报