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