# Queue capacity

**URL:** <https://discuss.elastic.co/t/queue-capacity/22814>\
**Category:** Elasticsearch\
**Created:** [March 23, 2015, 9:20am UTC](https://discuss.elastic.co/t/queue-capacity/22814 "2015-03-23T09:20:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![inferut](https://avatars.discourse-cdn.com/v4/letter/i/d78d45/32.png) [@inferut](https://discuss.elastic.co/u/inferut)\
**Post date:** [March 23, 2015, 9:20am UTC](https://discuss.elastic.co/t/queue-capacity/22814/1 "2015-03-23T09:20:15Z")

</div>

Hi all

Recently we start to face error:  
EsRejectedExecutionException[rejected execution (queue capacity 1000)

The strange thing that there is no parallel or hard requests. After some  
actions node start to throw that kind of error for any request, even for  
one shard with size set to 0 (aggregation type of request). We tried to  
enable slowlog, but that wasn't very helpful - there simply log of queries  
before breakdown. There shouldn't be any other background process, so there  
literally only 1 request, that throw error of query capacity.

So the question is - how can i understand the reason of problem? Maybe  
there is a way to see currently running process? Will be grateful for any  
suggestions.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6784961b-38c4-4c87-872a-acc4178eff15%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6784961b-38c4-4c87-872a-acc4178eff15%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Sharmi\_Banerjee](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@Sharmi\_Banerjee](https://discuss.elastic.co/u/Sharmi_Banerjee)\
**Post date:** [March 23, 2015, 10:47am UTC](https://discuss.elastic.co/t/queue-capacity/22814/2 "2015-03-23T10:47:52Z")

</div>

I'm also facing the same issue.  
I have copied 20 index from an elasticsearch instance to a new instance.  
After that when I started firing search queries in the new instance from my  
code, after 20-30 calls I'm getting error:

{[aRGdCWK2QsyfvgGJLt6xrA][quanteye\_ing][1]:  
EsRejectedExecutionException[rejected execution (queue capacity 1000) on  
org.elasticsearch.search.action.SearchServiceTransportAction$23@29fdcd0e]}

With the same amount of data and same calling code the old instance was  
running fine..

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/9039e319-5997-4648-b5ad-02ea67aeea51%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9039e319-5997-4648-b5ad-02ea67aeea51%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [March 23, 2015, 10:53am UTC](https://discuss.elastic.co/t/queue-capacity/22814/3 "2015-03-23T10:53:31Z")

</div>

Is this version 1.4.4?

Can you create a thread dump with tools like jstack?

If many threads are in the state BLOCKING, this would be interesting.

Jörg

On Mon, Mar 23, 2015 at 11:47 AM, Sharmi Banerjee [bonny.rockon89@gmail.com](mailto:bonny.rockon89@gmail.com)  
wrote:

> I'm also facing the same issue.  
> I have copied 20 index from an elasticsearch instance to a new instance.  
> After that when I started firing search queries in the new instance from my  
> code, after 20-30 calls I'm getting error:
> 
> {[aRGdCWK2QsyfvgGJLt6xrA][quanteye\_ing][1]:  
> EsRejectedExecutionException[rejected execution (queue capacity 1000) on  
> org.elasticsearch.search.action.SearchServiceTransportAction$23@29fdcd0e]}
> 
> With the same amount of data and same calling code the old instance was  
> running fine..
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/9039e319-5997-4648-b5ad-02ea67aeea51%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9039e319-5997-4648-b5ad-02ea67aeea51%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/9039e319-5997-4648-b5ad-02ea67aeea51%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/9039e319-5997-4648-b5ad-02ea67aeea51%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGU5EbfbP-NuhKyY4aG2MKY\_w49Kmj\_%2BgPEd8e745vUqA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGU5EbfbP-NuhKyY4aG2MKY_w49Kmj_%2BgPEd8e745vUqA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Sharmi\_Banerjee](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@Sharmi\_Banerjee](https://discuss.elastic.co/u/Sharmi_Banerjee)\
**Post date:** [March 23, 2015, 10:56am UTC](https://discuss.elastic.co/t/queue-capacity/22814/4 "2015-03-23T10:56:47Z")

</div>

No, I'm using elasticsearch 1.3.4

> You received this message because you are subscribed to the Google Groups
> 
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/9039e319-5997-4648-b5ad-02ea67aeea51%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9039e319-5997-4648-b5ad-02ea67aeea51%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/9039e319-5997-4648-b5ad-02ea67aeea51%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/9039e319-5997-4648-b5ad-02ea67aeea51%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0d599f75-9fc5-4e3a-9a9e-788da28e0772%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0d599f75-9fc5-4e3a-9a9e-788da28e0772%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:24am UTC](https://discuss.elastic.co/t/queue-capacity/22814/5 "2017-07-06T00:24:54Z")

</div>


