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()
1.4m articles
1.4m replys
5 comments
57.0k users