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

I had the same issue while I was trying to dump threads using jcmd. I was getting same error message even though I was running jcmd under the root user. You need to run jcmd <pid> Thread.print under the same user as java process has, otherwise your connections will be dropped. Java doesn’t care if … Read more

JMockit – initialization problem

The accepted answer has fallen a little out of date regarding the links so it’s worth mentioning the various solutions directly. To fix this problem do one of the following: 1 – Specifiy a javaagent Add this to your JUnit execution environment (for your version): -javaagent:path/to/your/jmockit/jmockit-0.998.jar 2 – configure the Surefire plugin in Maven to … Read more