Linked Questions

133 votes
10 answers
219k views

I am using kill -3 command to see the JVM's thread dump in unix. But where can I find the output of this kill command? I am lost!!
javanerd's user avatar
  • 2,872
106 votes
5 answers
100k views

I had to run jmap in order to take heap dump of my process. but jvm returned: Unable to open socket file: target process not responding or HotSpot VM not loaded The -F option can be used when the ...
rayman's user avatar
  • 21.7k
67 votes
16 answers
50k views

Long time ago, I saved a sentence from a Java reference book: "Java has no mechanism to handle deadlock. it won't even know deadlock occurred." (Head First Java 2nd Edition, p.516) So, what is about ...
israkir's user avatar
  • 2,131
4 votes
6 answers
10k views

I am getting the below exception when I try to run a simple jMockit/JUnit test using IBM JDK. Has anyone faced this issue? I tried given -Dcom.ibm.tools.attach.enable=yes as VM argument but no luck. ...
Nithin Satheesan's user avatar
3 votes
2 answers
12k views

When attempting to attach an agent jar file onto another process running in java, I have came across the exception: com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: ...
Joe's user avatar
  • 1,342
6 votes
4 answers
6k views

I have a bunch of Spring Boot 2.5.6 applications that use Mockito for unit testing. The version of Mockito that is used is the one that comes shipped within SB itself (3.9.0). The JDK is OpenJDK 11.0....
quiram's user avatar
  • 807
2 votes
1 answer
5k views

I'm trying to take a java heap dump to help investigate a memory leak. Whenever I use this: jmap -J-d64 -dump:format=b,file=myheapdump -F 29498 The heap dump file gets to about 16,048 kb and stops ...
jymbo's user avatar
  • 1,387
1 vote
2 answers
2k views

I am trying to monitor native memory of tomcat using jcmd but getting following exception: Command: jcmd 14533<pid of tomcat> VM.native_memory summary I have installed 2 jdk's jdk-11 AND jdk-8. ...
Mohit Kumar's user avatar
3 votes
1 answer
1k views

I have an weird issue with a Java process which is stuck (once/twice per day) and it only recovers after I execute: jstack -F ${PID} While the Java process is stuck, If I try to do a thread dump with ...
Cristi's user avatar
  • 310
1 vote
0 answers
772 views

While trying to create a heap dump from a Tomcat Service running as windows service, get "Access is denied" error. I started the command prompt as "Run as Administrator" Erorr ...
Raja's user avatar
  • 11