{{theTime}}

Search This Blog

Total Pageviews

How to find number of threads running in JVM?

Try this:


 ThreadGroup tgroup = Thread.currentThread().getThreadGroup();
 while(tgroup.getParent() != null) {
 tgroup = tgroup.getParent();
 }
 Thread[] t = new Thread[tgroup.activeCount()];
 tgroup.enumerate(t);

No comments:

Windows 8.3 file naming setting is disabled for the product

To enable Windows 8.3 file naming setting use fsutil command Example:  c:\> fsutil 8dot3name set C: 0