Thursday, March 6

What is a Thread dump? How will you take in unix/linux and windows?

ANSWER:
A Java thread dump is a way of finding out what every thread in the JVM is doing at a particularpoint in time. This is especially useful if your Java application sometimes seems to hang when running under load, as an analysis of the dump will show where the threads are stuck.
1) Linux : kill -3 < ps_id >
2) Windows (console mode) : crtl + break
3) Windows (service) : beasvc -dump -svcname:mydomain_myserver

No comments:

Post a Comment