Can somebody tell me how I can find out "how many threads are in deadlock condition" in a Java multi-threading application? What is the way to find out the list of deadlocked threads?
I heard about Thread Dump and Stack Traces, but I don't know how to implement it.
Please let me know with your comments and suggestions.
Way of obtaining thread dumps:
kill -3 on Linux/UNIXjstack and your process id (use jps)jconsole or visualvmMajor new threading features in J2SE 5.0 (released 2004, in End Of Service Life Period):
java.util.concurrentIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With