How I get retrive all threads info ?

classic Classic list List threaded Threaded
1 message Options
shivang shivang
Reply | Threaded
Open this post in threaded view
|

How I get retrive all threads info ?

I want to retrieve all thread info like,
-- thread name
-- thread stat
-- dead lock state
-- memory taken by thread
---- etc...


Currently I can get only this info with this method :

https://example.com/jolokia/read/java.lang:type=Threading/


{"request":{"mbean":"java.lang:type=Threading","type":"read"},"value":{"ThreadAllocatedMemorySupported":true,"ThreadContentionMonitoringEnabled":false,"TotalStartedThreadCount":28,"CurrentThreadUserTime":260000000,"CurrentThreadCpuTimeSupported":true,"PeakThreadCount":28,"AllThreadIds":[1,2,3,4,8,12,13,16,17,18,19,20,22,24,25,26,27,28,29,30,31,32,34,35],"ThreadAllocatedMemoryEnabled":true,"CurrentThreadCpuTime":337387188,"ObjectName":{"objectName":"java.lang:type=Threading"},"ThreadContentionMonitoringSupported":true,"ThreadCpuTimeSupported":true,"ThreadCount":24,"ThreadCpuTimeEnabled":true,"ObjectMonitorUsageSupported":true,"SynchronizerUsageSupported":true,"DaemonThreadCount":23},"timestamp":1525694758,"status":200}


Please suggest or if solution is available then refer to me.

Thank you.