How to get 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()

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)