Rejected Execution exception

Hi everyone.

I'm using ES in a development system and i've got this error using a search request.

I tried to change queue_size from 1000 to 10000 but this didn't work:

Trace: [es_rejected_execution_exception] rejected execution of org.elasticsearch.common.util.concurrent.TimedRunnable@2dd06f7 on QueueResizingEsThreadPoolExecutor[name = u86W95s/search, queue capacity = 1000, min queue capacity = 1000, max queue capacity = 1000, frame size = 2000, targeted response rate = 15s, task execution EWMA = 1micros, adjustment amount = 50, org.elasticsearch.common.util.concurrent.QueueResizingEsThreadPoolExecutor@19adeb5c[Running, pool size = 6, active threads = 6, queued tasks = 2050, completed tasks = 234010]] (and) [es_rejected_execution_exception] rejected execution of org.elasticsearch.common.util.concurrent.TimedRunnable@735bdafe on QueueResizingEsThreadPoolExecutor[name = u86W95s/search, queue capacity = 1000, min queue capacity = 1000, max queue capacity = 1000, frame size = 2000, targeted response rate = 15s, task execution EWMA = 1micros, adjustment amount = 50, org.elasticsearch.common.util.concurrent.QueueResizingEsThreadPoolExecutor@19adeb5c[Running, pool size = 6, active threads = 6, queued tasks = 2050, completed tasks = 234010]] (and) [es_rejected_execution_exception] rejected execution of org.elasticsearch.common.util.concurrent.TimedRunnable@73ab4a0 on QueueResizingEsThreadPoolExecutor[name = u86W95s/search, queue capacity = 1000, min queue capacity = 1000, max queue capacity = 1000, frame size = 2000, targeted response rate = 15s, task execution EWMA = 1micros, adjustment amount = 50, org.elasticsearch.common.util.concurrent.QueueResizingEsThreadPoolExecutor@19adeb5c[Running, pool size = 6, active threads = 6, queued tasks = 2052, completed tasks = 234010]] (and) [es_rejected_execution_exception] rejected execution of org.elasticsearch.common.util.concurrent.TimedRunnable@2f40f298 on QueueResizingEsThreadPoolExecutor[name = u86W95s/search, queue capacity = 1000, min queue capacity = 1000, max queue capacity = 1000, frame size = 2000, targeted response rate = 15s, task execution EWMA = 118.5micros, adjustment amount = 50, org.elasticsearch.common.util.concurrent.QueueResizingEsThreadPoolExecutor@19adeb5c[Running, pool size = 6, active threads = 6, queued tasks = 1335, completed tasks = 237563]]

It seems queue_size is not affected by my request.
Moreover, i tried to set thread_pool size but this didn't work too.
For more information, we are 3 developers that call ES in parallel from 3 different machines.

Can anyone help me? Thanks!

Elasticsearch is telling you with this error message, that it is running at capacity and its thread pool is filled. It's hard to tell anything further without more information.

It just seems you are sending a lot of requests in parallel instead of waiting for some requests to return before sending the next ones - you might want to check your application code for that.

Thank you for your reply.

I don't understand why ES doesn't get my new Thread_Pool or Queue_Size settings.

However, i'll try to differently setup my application requests.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.