# Search thread pool active and queue not full but rejected happened

**URL:** <https://discuss.elastic.co/t/search-thread-pool-active-and-queue-not-full-but-rejected-happened/281494>\
**Category:** Elasticsearch\
**Created:** [August 16, 2021, 1:50am UTC](https://discuss.elastic.co/t/search-thread-pool-active-and-queue-not-full-but-rejected-happened/281494 "2021-08-16T01:50:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![casterQ](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/casterq/32/93257_2.png) [@casterQ](https://discuss.elastic.co/u/casterQ)\
**Post date:** [August 16, 2021, 1:50am UTC](https://discuss.elastic.co/t/search-thread-pool-active-and-queue-not-full-but-rejected-happened/281494/1 "2021-08-16T01:50:10Z")

</div>

i found a datanode search thread pool has rejected，but grafana monitor show that moment search threap\_pool ’s active(size=49) and queue(size=2000) is not full，I can't understand why ，please help me。thanks a lot...

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/d/1dfa76fcc2d96160fe35b7ab044c45ba014b8df4.jpeg)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 16, 2021, 1:54am UTC](https://discuss.elastic.co/t/search-thread-pool-active-and-queue-not-full-but-rejected-happened/281494/2 "2021-08-16T01:54:02Z")

</div>

Welcome to our community! 😃

What is the output from the `_cluster/stats?pretty&human` API?

---

<div class="post-metadata">

**Author:** ![casterQ](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/casterq/32/93257_2.png) [@casterQ](https://discuss.elastic.co/u/casterQ)\
**Post date:** [August 16, 2021, 2:02am UTC](https://discuss.elastic.co/t/search-thread-pool-active-and-queue-not-full-but-rejected-happened/281494/3 "2021-08-16T02:02:39Z")

</div>

> [@warkolm](#):
>
> \_cluster/stats?pretty&human

Thank you for your reply 😆，i can't get the stats of that moment now and do you want current stats？which part do you need？  
And i found that moment an index has both write and search tasks ，Is that a problem？

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/2/a214713841a52a5a3adf8fc109d100fd104d265d.png)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 16, 2021, 2:07am UTC](https://discuss.elastic.co/t/search-thread-pool-active-and-queue-not-full-but-rejected-happened/281494/4 "2021-08-16T02:07:57Z")

</div>

We need to see the whole thing please.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 16, 2021, 2:38am UTC](https://discuss.elastic.co/t/search-thread-pool-active-and-queue-not-full-but-rejected-happened/281494/6 "2021-08-16T02:38:30Z")

</div>

You have a pretty large cluster there!

What is the output from `_cat/threadpools?v` and hot threads when you get these rejections?

> [@casterQ](#):
>
> ```auto
> "versions" : [
> "7.10.2"
> ],
> 
> ```

You should upgrade, 7.10 is relatively old and latest is 7.14.

---

<div class="post-metadata">

**Author:** ![casterQ](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/casterq/32/93257_2.png) [@casterQ](https://discuss.elastic.co/u/casterQ)\
**Post date:** [August 16, 2021, 2:43am UTC](https://discuss.elastic.co/t/search-thread-pool-active-and-queue-not-full-but-rejected-happened/281494/8 "2021-08-16T02:43:18Z")

</div>

> [@casterQ](#):
>
> From grafana i can see active and pool is not full but rejected happened。i'm sorry for i can‘t get hot thread info in that moment。 and is there some thing can cause this problem？

From grafana i can see active and pool is not full but rejected happened。i'm sorry for i can‘t get hot thread info in that moment。 and is there some thing can cause this problem？

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 16, 2021, 2:48am UTC](https://discuss.elastic.co/t/search-thread-pool-active-and-queue-not-full-but-rejected-happened/281494/9 "2021-08-16T02:48:53Z")

</div>

That's hard to say without more info.

---

<div class="post-metadata">

**Author:** ![casterQ](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/casterq/32/93257_2.png) [@casterQ](https://discuss.elastic.co/u/casterQ)\
**Post date:** [August 16, 2021, 4:20am UTC](https://discuss.elastic.co/t/search-thread-pool-active-and-queue-not-full-but-rejected-happened/281494/10 "2021-08-16T04:20:12Z")

</div>

OK，Thank you for your reply anyway。

---

<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:** [September 13, 2021, 4:20am UTC](https://discuss.elastic.co/t/search-thread-pool-active-and-queue-not-full-but-rejected-happened/281494/11 "2021-09-13T04:20:13Z")

</div>

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