0

Why am I getting the message "Unable to open socket file: target process not responding or HotSpot VM not loaded" when I am trying to profiling memory using VisualVM? I am trying to profile Flink TaskManager. This answer says that I have to increase the timeout of VisualVM but the parameter -Dsun.tools.attach.attachTimeout does not work to start VisualVM with it. I get the same or similar error when I try to dump the memory using jstack:

$ sudo jstack 700
700: Unable to open socket file /proc/700/root/tmp/.java_pid700: target process 700 doesn't respond within 10500ms or HotSpot VM not loaded

enter image description here

Felipe
  • 7,013
  • 8
  • 44
  • 102

0 Answers0