While helping someone debug a logstash issue tonight, we noticed that for an
elasticsearch native java client had 1700 elasticsearch threads. After
further digging, I concluded that the high thread count for elasticsearch,
while abnormal, was not related to the problem I was debugging.
Emailing the list anyway to get some details about what is going on -
Here's a breakdown of elasticsearch threads according to jstack:
% grep '^"' logstash.jstack | fex '"1' | sed -re 's/[0-9]+/XXX/g' |sort|
uniq -c | sort -n | grep elastic
1 elasticsearch[Artemis]clusterService#updateTask-pool-XXX-thread-XXX
1 elasticsearch[Artemis][scheduler]-pool-XXX-thread-XXX
1 elasticsearch[Artemis][timer]
1 elasticsearch[Artemis]transport_client_boss-pool-XXX-thread-XXX
6 elasticsearch[Artemis]transport_client_worker-pool-XXX-thread-XXX
1694 elasticsearch[cached]-pool-XXX-thread-XXX
What are these 'cached' pool threads? Why would there be almost 1700 of
them?
Are they pending queries? Something else?
-Jordan