Skip to main content
InterviewHubPRO
Section Overview
Q34

Question 34 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

68%
Elasticsearch & Lucene (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

How do you troubleshoot high CPU or long Garbage Collection pauses in Elasticsearch?

senior LevelMemory Management

In Simple Words:

  1. Run GET /_nodes/hot_threads to inspect which Java threads are consuming CPU (e.g. Lucene merge, query execution, regex).
  2. Check thread pool rejections via GET /_cat/thread_pool?v.
  3. Inspect slow logs (elasticsearch_index_slowlog.log and elasticsearch_search_slowlog.log).
  4. Check garbage collection logs for Young/Old Gen GC pauses exceeding 1 second.