{{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:

Setup AWS Application Load Balancer Https

Setting up HTTPS for an AWS Application Load Balancer (ALB) involves configuring an HTTPS listener, deploying an SSL certificate, and defini...