# Threadpool setting notworking

**URL:** <https://discuss.elastic.co/t/threadpool-setting-notworking/5343>\
**Category:** Elasticsearch\
**Created:** [September 10, 2011, 4:21pm UTC](https://discuss.elastic.co/t/threadpool-setting-notworking/5343 "2011-09-10T16:21:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Huy\_Le](https://avatars.discourse-cdn.com/v4/letter/h/f17d59/32.png) [@Huy\_Le](https://discuss.elastic.co/u/Huy_Le)\
**Post date:** [September 10, 2011, 4:21pm UTC](https://discuss.elastic.co/t/threadpool-setting-notworking/5343/1 "2011-09-10T16:21:38Z")

</div>

Hi,

I tried to configure threadpool in elasticsearch.yml for ES 0.17.6, but it  
fails to start up. Here is my setting:

threadpool:  
search:  
type: blocking  
min: 5  
max: 20  
wait\_time: 30s  
keep\_alive: 90s  
index:  
type: blocking  
min: 3  
max: 10  
wait\_time: 30s  
keep\_alive: 90s

When try to it start up, ES logged "creating thread\_pool" over 100,000 times  
like the following:

[2011-09-10 16:08:27,500][DEBUG][  
threadpool ] [staging-ss5]  
creating thread\_pool [cached], type [cached], keep\_alive [30s]  
[2011-09-10 16:08:27,500][DEBUG][threadpool] [staging-ss5]  
creating thread\_pool [index], type [blocking], min [3], size [10],  
keep\_alive [1.5m], wait\_time [30s]  
[2011-09-10 16:08:27,500][DEBUG][threadpool] [staging-ss5]  
creating thread\_pool [cached], type [cached], keep\_alive [30s]  
[2011-09-10 16:08:27,500][DEBUG][threadpool] [staging-ss5]  
creating thread\_pool [index], type [blocking], min [3], size [10],  
keep\_alive [1.5m], wait\_time [30s]

Eventually it logged error:

[2011-09-10 16:09:04,753][ERROR][bootstrap]  
{elasticsearch/0.17.6}: Initialization Failed ...

1. IllegalStateException[This is a proxy used to support circular references  
involving constructors. The object we're proxying is not constructed yet.  
Please wait until after injection has completed to use this object.]2)  
IllegalArgumentException[null]

Am I missing something in the config?

Thanks!

Huy

---

<div class="post-metadata">

**Author:** ![Huy\_Le](https://avatars.discourse-cdn.com/v4/letter/h/f17d59/32.png) [@Huy\_Le](https://discuss.elastic.co/u/Huy_Le)\
**Post date:** [September 10, 2011, 4:33pm UTC](https://discuss.elastic.co/t/threadpool-setting-notworking/5343/2 "2011-09-10T16:33:34Z")

</div>

It looks like the issue is with "blocking" type. Changing type to  
"fixed" it worked fine. The following setting works:

threadpool:  
index:  
type: fixed  
size: 50  
search:  
type: fixed  
size: 500

Huy

On Sep 10, 12:21 pm, Huy Le [hu...@leveragingit.com](mailto:hu...@leveragingit.com) wrote:

> Hi,
> 
> I tried to configure threadpool in elasticsearch.yml for ES 0.17.6, but it  
> fails to start up. Here is my setting:
> 
> threadpool:  
> search:  
> type: blocking  
> min: 5  
> max: 20  
> wait\_time: 30s  
> keep\_alive: 90s  
> index:  
> type: blocking  
> min: 3  
> max: 10  
> wait\_time: 30s  
> keep\_alive: 90s
> 
> When try to it start up, ES logged "creating thread\_pool" over 100,000 times  
> like the following:
> 
> [2011-09-10 16:08:27,500][DEBUG][  
> threadpool ] [staging-ss5]  
> creating thread\_pool [cached], type [cached], keep\_alive [30s]  
> [2011-09-10 16:08:27,500][DEBUG][threadpool] [staging-ss5]  
> creating thread\_pool [index], type [blocking], min [3], size [10],  
> keep\_alive [1.5m], wait\_time [30s]  
> [2011-09-10 16:08:27,500][DEBUG][threadpool] [staging-ss5]  
> creating thread\_pool [cached], type [cached], keep\_alive [30s]  
> [2011-09-10 16:08:27,500][DEBUG][threadpool] [staging-ss5]  
> creating thread\_pool [index], type [blocking], min [3], size [10],  
> keep\_alive [1.5m], wait\_time [30s]
> 
> Eventually it logged error:
> 
> [2011-09-10 16:09:04,753][ERROR][bootstrap]  
> {elasticsearch/0.17.6}: Initialization Failed ...
> 
> 1. IllegalStateException[This is a proxy used to support circular references  
> involving constructors. The object we're proxying is not constructed yet.  
> Please wait until after injection has completed to use this object.]2)  
> IllegalArgumentException[null]
> 
> Am I missing something in the config?
> 
> Thanks!
> 
> Huy

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [September 10, 2011, 10:07pm UTC](https://discuss.elastic.co/t/threadpool-setting-notworking/5343/3 "2011-09-10T22:07:56Z")

</div>

heya, yea, its a bug, fixed here:  
[Thread Pool: Blocking thread pool type configuration fails · Issue #1321 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1321). Will be part of  
0.17.7, which will have more options to thread pool config. Once 0.17.7 is  
out, I will also properly document all the different thread pool options and  
what they mean.

On Sat, Sep 10, 2011 at 7:33 PM, Huy Le [huyle@leveragingit.com](mailto:huyle@leveragingit.com) wrote:

> It looks like the issue is with "blocking" type. Changing type to  
> "fixed" it worked fine. The following setting works:
> 
> threadpool:  
> index:  
> type: fixed  
> size: 50  
> search:  
> type: fixed  
> size: 500
> 
> Huy
> 
> On Sep 10, 12:21 pm, Huy Le [hu...@leveragingit.com](mailto:hu...@leveragingit.com) wrote:
> 
> > Hi,
> > 
> > I tried to configure threadpool in elasticsearch.yml for ES 0.17.6, but  
> > it  
> > fails to start up. Here is my setting:
> > 
> > threadpool:  
> > search:  
> > type: blocking  
> > min: 5  
> > max: 20  
> > wait\_time: 30s  
> > keep\_alive: 90s  
> > index:  
> > type: blocking  
> > min: 3  
> > max: 10  
> > wait\_time: 30s  
> > keep\_alive: 90s
> > 
> > When try to it start up, ES logged "creating thread\_pool" over 100,000  
> > times  
> > like the following:
> > 
> > [2011-09-10 16:08:27,500][DEBUG][  
> > threadpool ] [staging-ss5]  
> > creating thread\_pool [cached], type [cached], keep\_alive [30s]  
> > [2011-09-10 16:08:27,500][DEBUG][threadpool] [staging-ss5]  
> > creating thread\_pool [index], type [blocking], min [3], size [10],  
> > keep\_alive [1.5m], wait\_time [30s]  
> > [2011-09-10 16:08:27,500][DEBUG][threadpool] [staging-ss5]  
> > creating thread\_pool [cached], type [cached], keep\_alive [30s]  
> > [2011-09-10 16:08:27,500][DEBUG][threadpool] [staging-ss5]  
> > creating thread\_pool [index], type [blocking], min [3], size [10],  
> > keep\_alive [1.5m], wait\_time [30s]
> > 
> > Eventually it logged error:
> > 
> > [2011-09-10 16:09:04,753][ERROR][bootstrap]  
> > {elasticsearch/0.17.6}: Initialization Failed ...
> > 
> > 1. IllegalStateException[This is a proxy used to support circular  
> > references  
> > involving constructors. The object we're proxying is not constructed yet.  
> > Please wait until after injection has completed to use this object.]2)  
> > IllegalArgumentException[null]
> > 
> > Am I missing something in the config?
> > 
> > Thanks!
> > 
> > Huy

---

<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 6, 2017, 3:54am UTC](https://discuss.elastic.co/t/threadpool-setting-notworking/5343/4 "2017-07-06T03:54:54Z")

</div>


