# Es Rejected Exception \[es\_rejected\_execution\_exception\]

**URL:** <https://discuss.elastic.co/t/es-rejected-exception-es-rejected-execution-exception/379530>\
**Category:** Elasticsearch\
**Created:** [June 26, 2025, 12:36pm UTC](https://discuss.elastic.co/t/es-rejected-exception-es-rejected-execution-exception/379530 "2025-06-26T12:36:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sathya\_R](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sathya_r/32/143861_2.png) [@Sathya\_R](https://discuss.elastic.co/u/Sathya_R)\
**Post date:** [June 26, 2025, 12:36pm UTC](https://discuss.elastic.co/t/es-rejected-exception-es-rejected-execution-exception/379530/1 "2025-06-26T12:36:34Z")

</div>

I am getting Es rejected Exception.

I am having Elasticsearch setup in a server of 188GB RAM,32 GB is assigned to JVM heap of Elastic search.Remaing is off heap memory.  
I am having ~1TB data space.and i am querying on ~200GB data.

My number of queries also not much.  
Error:Uncaught Elasticsearch\Common\Exceptions\BadRequest400Exception: {"error":{"root\_cause":,"type":"search\_phase\_execution\_exception","reason":"failed to expand hits","phase":"expand","grouped":true,"failed\_shards":,"caused\_by":{"type":"search\_phase\_execution\_exception","reason":"","phase":"fetch","grouped":true,"failed\_shards":,"caused\_by":{"type":"es\_rejected\_execution\_exception","reason":"rejected execution of TimedRunnable{original=org.elasticsearch.action.search.FetchSearchPhase$1@69c76223, creationTimeNanos=11618195507137764, startTimeNanos=0, finishTimeNanos=-1, failedOrRejected=false} on TaskExecutionTimeTrackingEsThreadPoolExecutor[name = localhost\_es.com/search, queue capacity = 1000, task execution EWMA = 79.9ms, total task execution time = 38.1d, org.elasticsearch.common.util.concurrent.TaskExecutionTimeTrackingEsThreadPoolExecutor@52e34db[Running, pool size = 61, active threads = 61, queued tasks = 1000, completed tasks = 762999813]]"}}},"status":429}

How to solve this..

---

<div class="post-metadata">

**Author:** ![RainTown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raintown/32/140206_2.png) [@RainTown](https://discuss.elastic.co/u/RainTown)\
**Post date:** [June 26, 2025, 1:04pm UTC](https://discuss.elastic.co/t/es-rejected-exception-es-rejected-execution-exception/379530/2 "2025-06-26T13:04:20Z")

</div>

Welcome to the forum.

> [@Sathya\_R](#):
>
> queued tasks = 1000

Is likely your immediate problem. I guess you have no clear idea why there are so many tasks queued? FYI 1000 is the default limit for the thread pool. Is this issue new, and if so has anything changed recently? That default limit was the same last week!

You could have a look at the /\_tasks and \_nodes/stats/thread\_pool outputs. And the slow log. You _could_ also increase the limit. But might be better to understand your use case and query pattern a little more.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [June 26, 2025, 1:28pm UTC](https://discuss.elastic.co/t/es-rejected-exception-es-rejected-execution-exception/379530/3 "2025-06-26T13:28:15Z")

</div>

Which version of Elasticsearch are you using?

What type of storage are you using? Local SSDs?

How much data does the node hold in total? How many indices and shards is that spread across?

How many indices and shards are your queries targeting?

> [@Sathya\_R](#):
>
> My number of queries also not much.

How many concurrent queries are you sending? What type of queries are these?
