ES consumes 100% CPU, why?

I am running elasticsearch on 8 GB RHEL Rmachine.
I have 70GB partition /elasticsearch where data files are stored. recently I have changed file /etc/sysconfig/elasticsearch to allocate 3gb memory to ES_HEAP_SIZE. Also I changed values for number of shards and replicas.

When I start ES, it takes lot of time and consumes 100% CPU. Can anybody guess what is the reason? Where can I dig into?


Look at the logs, it could be GC, also look at slow log to see what it has.

Hi Sunil,

Maybe SPM for Elasticsearch or Marvel will point out what is going on? If not, you could try jstacking a few times or running with the profiler.


Monitoring * Alerting * Anomaly Detection * Centralized Log Management
Solr & Elasticsearch Consulting & Support *