com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded

后端 未结 4 1262
野的像风
野的像风 2020-12-08 22:42

I get AttachNotSupportedException while running jmockit tests on linux (ubuntu 64bit). Java version is 1.7.0_51. This JDK is from Oracle. Tests are run using

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-08 23:24

    I also got a similar problem when tried to check for Thread Deadlock. You can also use the command jcmd Thread.print to print the thread dump on the console and check if the program has a deadlock. You can check my answer with steps on Deadlock detection in Java

提交回复
热议问题