# EsRejectedExecutionException in ES

**URL:** <https://discuss.elastic.co/t/esrejectedexecutionexception-in-es/54100>\
**Category:** Kibana\
**Created:** [June 28, 2016, 4:15am UTC](https://discuss.elastic.co/t/esrejectedexecutionexception-in-es/54100 "2016-06-28T04:15:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kennedy\_Kan1](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Kennedy\_Kan1](https://discuss.elastic.co/u/Kennedy_Kan1)\
**Post date:** [June 28, 2016, 4:15am UTC](https://discuss.elastic.co/t/esrejectedexecutionexception-in-es/54100/1 "2016-06-28T04:15:36Z")

</div>

My ES has been running fine. However, after I have managed to run through a visualization chart which gone through a large amount of data, it gives me the following error.

> EsRejectedExecutionException[rejected execution of org.elasticsearch.transport.TransportService$4@9474a on EsThreadPoolExecutor[search, queue capacity = 1000, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@1aa8ac1[Running, pool size = 4, active threads = 4, queued tasks = 1000, completed tasks = 7289]]]

Does that mean I have too many data for loading which the ES could not hold up to this amount?

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [June 28, 2016, 5:59am UTC](https://discuss.elastic.co/t/esrejectedexecutionexception-in-es/54100/2 "2016-06-28T05:59:01Z")

</div>

It's not necessarily an indication that you have too much data, but that you are overwhelming the Elasticsearch instance with too many requests. A few options are to increase the size of the queue or threadpool, or add more nodes to the cluster.

---

<div class="post-metadata">

**Author:** ![Kennedy\_Kan1](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Kennedy\_Kan1](https://discuss.elastic.co/u/Kennedy_Kan1)\
**Post date:** [July 12, 2016, 8:23am UTC](https://discuss.elastic.co/t/esrejectedexecutionexception-in-es/54100/4 "2016-07-12T08:23:40Z")

</div>

Hi @tsmalley,

Thanks. But I am not sure how I should increase the queue size or thread pool.

Can I just directly add to elasticsearch.yml with this?

> threadpool.bulk.type: fixed  
> threadpool.bulk.size: 8  
> threadpool.bulk.queue\_size: 10000

---

<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, 1:47pm UTC](https://discuss.elastic.co/t/esrejectedexecutionexception-in-es/54100/5 "2017-07-06T13:47:09Z")

</div>


