all: the bean you want to profile will need to implement ThreadMX https://www.javamex.com/tutorials/profiling/profiling_java5_threads_howto.shtml
import java.lang.management.*; ... ThreadMXBean threadBean = ManagementFactory.getThreadMXBean(); once we have ThreadMXBean we can interrogate threadIds and attributes monitored long[] getAllThreadIds(); ThreadInfo[] getThreadInfo(long[] ids, int maxDepth); we can "read" the thread info with getThreadInfo a wild guess would lead one to believe you are calling ThreadMXBean.dumpAllBeans() it would be helpful to parse the attributes of ThreadInfo objects that you are seeing in "dump format" https://docs.oracle.com/en/java/javase/11/docs/api/java.management/java/lang/management/ThreadInfo.html there is a JMX Client that will allow you to view ThreadInfo attributes called JConsole explained here: https://docs.oracle.com/javase/7/docs/technotes/guides/management/jconsole.html clear as mud? m. ________________________________ From: Lukasz Lenart <lukaszlen...@apache.org> Sent: Thursday, April 23, 2020 2:43 AM To: Struts Developers List <dev@struts.apache.org> Subject: Re: Struts benchmarking Here are some comparisons, does anybody now how to read this? Struts 2.5.22 Starting standalone test @ Thu Apr 23 08:36:14 CEST 2020 (1587623774966) Waiting for possible Shutdown/StopTestNow/HeapDump/ThreadDump message on port 4445 summary + 2695 in 00:00:15 = 181.9/s Avg: 537 Min: 99 Max: 768 Err: 0 (0.00%) Active: 100 Started: 100 Finished: 0 summary + 2305 in 00:00:11 = 210.7/s Avg: 479 Min: 34 Max: 618 Err: 0 (0.00%) Active: 0 Started: 100 Finished: 100 summary = 5000 in 00:00:26 = 194.1/s Avg: 510 Min: 34 Max: 768 Err: 0 (0.00%) Tidying up ... @ Thu Apr 23 08:36:40 CEST 2020 (1587623800950) Struts 2.6-SNAPSHOT Starting standalone test @ Thu Apr 23 08:40:52 CEST 2020 (1587624052092) Waiting for possible Shutdown/StopTestNow/HeapDump/ThreadDump message on port 4445 summary + 1275 in 00:00:08 = 166.3/s Avg: 581 Min: 206 Max: 1288 Err: 0 (0.00%) Active: 100 Started: 100 Finished: 0 summary + 3725 in 00:00:18 = 203.1/s Avg: 493 Min: 109 Max: 710 Err: 0 (0.00%) Active: 0 Started: 100 Finished: 100 summary = 5000 in 00:00:26 = 192.2/s Avg: 516 Min: 109 Max: 1288 Err: 0 (0.00%) Tidying up ... @ Thu Apr 23 08:41:18 CEST 2020 (1587624078347) Regards -- Ćukasz + 48 606 323 122 http://www.lenart.org.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org