具体异常信息如下:
root@test-6cf7db85b7-sxk8h:/# jmap 7
Attaching to process ID 7, please wait...
ERROR: ptrace(PTRACE_ATTACH, ..) failed for 7: Operation not permitted
Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process: ptrace(PTRACE_ATTACH, ..) failed fo
我有由HashiCorp Nomad运行的java应用程序。在进程状态输出时,root运行游牧民执行程序进程,nobody运行java应用程序进程。
当我尝试执行命令:jmap -dump:format=b,file=filename.bin <app_pid>
我收到消息:
Unable to open socket file: target process not responding or HotSpot VM not loaded The -F option can be used when the target process is not responding
当我尝试
我在执行以下命令时遇到了下面的异常
jmap -dump:format=b,file=heap_dump.bin <process_id>
产出:
Dumping heap to <file_name>
Exception in thread "main" java.io.IOException: Premature EOF
at sun.tools.attach.HotSpotVirtualMachine.readInt(HotSpotVirtualMachine.java:248)
at sun.too