本文主要是介绍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
这篇关于Ubuntu下jmap,jinfo Can't attach to the process的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!