# Plugins and thread pools

**URL:** <https://discuss.elastic.co/t/plugins-and-thread-pools/47885>\
**Category:** Elasticsearch\
**Created:** [April 20, 2016, 9:33am UTC](https://discuss.elastic.co/t/plugins-and-thread-pools/47885 "2016-04-20T09:33:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JLVeiga](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jlveiga/32/55259_2.png) [@JLVeiga](https://discuss.elastic.co/u/JLVeiga)\
**Post date:** [April 20, 2016, 9:33am UTC](https://discuss.elastic.co/t/plugins-and-thread-pools/47885/1 "2016-04-20T09:33:32Z")

</div>

Quick question regarding thread pools, Do java plugins run its own thread pool?

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [April 20, 2016, 10:35am UTC](https://discuss.elastic.co/t/plugins-and-thread-pools/47885/2 "2016-04-20T10:35:41Z")

</div>

They run in whatever thread pool calls them. If you make a new score  
function or a new aggregation most methods are called in the search thread  
pool. If you write a native update script it is called in the update thread  
pool. If you make a new action then you have complete control.

---

<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:** [July 5, 2017, 10:57pm UTC](https://discuss.elastic.co/t/plugins-and-thread-pools/47885/3 "2017-07-05T22:57:44Z")

</div>

Closed on July 5, 2017, 10:57pm UTC


