How can I see the number of threads in a Java process?
java.lang.Thread.activeCount()
It will return the number of active threads in the current thread's thread group.
docs: http://docs.oracle.com/javase/7/docs/api/java/lang/Thread.html#activeCount()
2.1m questions
2.1m answers
60 comments
57.0k users