# Jmx input plugin number of threads

**URL:** <https://discuss.elastic.co/t/jmx-input-plugin-number-of-threads/180786>\
**Category:** Logstash\
**Created:** [May 13, 2019, 10:23am UTC](https://discuss.elastic.co/t/jmx-input-plugin-number-of-threads/180786 "2019-05-13T10:23:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sahere37](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@sahere37](https://discuss.elastic.co/u/sahere37)\
**Post date:** [May 13, 2019, 10:23am UTC](https://discuss.elastic.co/t/jmx-input-plugin-number-of-threads/180786/1 "2019-05-13T10:23:48Z")

</div>

Hi all,  
I am going to use JMX input plugin in Logstash, in the jmx setting, we can set number of threads as "nb\_thread". what is best value for this field? it is noted that number of cpu cores is 4. could you please advise me about this? many thanks

---

<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:** [June 10, 2019, 10:23am UTC](https://discuss.elastic.co/t/jmx-input-plugin-number-of-threads/180786/2 "2019-06-10T10:23:54Z")

</div>

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