Count of WAITING Threads in JVM
If you ever need to monitor the number of WAITING Threads in a JVM, you can do something like:
jstack <PID> | grep "java.lang.Thread.State: WAITING" | wc -l
Of course, you can substitute in any of the other Thread states you might be interested in.
Written by Greg Roodt
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Java
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#