ES consumes 100% CPU, why?

Hi,
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?

thanks
Sunil.

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.

Otis

Monitoring * Alerting * Anomaly Detection * Centralized Log Management
Solr & Elasticsearch Consulting & Support * http://sematext.com/