# How to get all thread names with there utilization using logstash-jmx plugin

**URL:** <https://discuss.elastic.co/t/how-to-get-all-thread-names-with-there-utilization-using-logstash-jmx-plugin/190740>\
**Category:** Logstash\
**Created:** [July 16, 2019, 1:25pm UTC](https://discuss.elastic.co/t/how-to-get-all-thread-names-with-there-utilization-using-logstash-jmx-plugin/190740 "2019-07-16T13:25:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amritesh\_mishra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amritesh_mishra/32/50251_2.png) [@amritesh\_mishra](https://discuss.elastic.co/u/amritesh_mishra)\
**Post date:** [July 16, 2019, 1:25pm UTC](https://discuss.elastic.co/t/how-to-get-all-thread-names-with-there-utilization-using-logstash-jmx-plugin/190740/1 "2019-07-16T13:25:31Z")

</div>

We want to get the data per thread utilization for a java process using logstash-jmx plugin as well as the name of the thread which is currently running for that java process.

Can you help on this so that we can do the configuration changes to get all the thread name which are currently running with there utilization.

We are using below configuration to get the details but we are not getting the proper information.

"queries" : [  
{  
"object\_name" : "java.lang:type=Threading",  
"operation" : "getThreadMXBean",  
"object\_alias" : "Threading",  
"arguments" : [true,true]  
}, {  
"object\_name" : "java.lang:type=Runtime",  
"attributes" : ["Uptime", "StartTime"],  
"object\_alias" : "Runtime"  
}, {  
"object\_name" : "java.nio:type=BufferPool,name=",  
"object\_alias" : "{type}.{name}"  
}]

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 13, 2019, 1:25pm UTC](https://discuss.elastic.co/t/how-to-get-all-thread-names-with-there-utilization-using-logstash-jmx-plugin/190740/2 "2019-08-13T13:25:37Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
