# Getting CPU spikes because of ElasticSearch

**URL:** <https://discuss.elastic.co/t/getting-cpu-spikes-because-of-elasticsearch/133998>\
**Category:** Elasticsearch\
**Created:** [May 31, 2018, 8:13am UTC](https://discuss.elastic.co/t/getting-cpu-spikes-because-of-elasticsearch/133998 "2018-05-31T08:13:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yoga-sara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yoga-sara/32/27541_2.png) [@yoga-sara](https://discuss.elastic.co/u/yoga-sara)\
**Post date:** [May 31, 2018, 8:13am UTC](https://discuss.elastic.co/t/getting-cpu-spikes-because-of-elasticsearch/133998/1 "2018-05-31T08:13:52Z")

</div>

I have my ELK setup like  
Filebeat =\> Logstash =\> Elasticsearch(single cluster with 1 node) =\> Kibana

My allocated memory as followed,  
Logstash - 1gb  
Elasticsearch - 9gb

I have added 8 CPU for this machine.My log count average is 2.5lacs/3 hrs. above 5000/5 min. My average CPU utilization 90%. While I stop this service it drops to below 10.

Initially I had 4 CPU ,Utilization went 90%.After I increased 8CPU then also it utilizing 90% of cpu.

Can we allocate/customize no of cpu for elasticsearch. If yes how to configure it? Guide me to get rid of this issue. Thanks in advance.

---

<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:** [June 28, 2018, 8:13am UTC](https://discuss.elastic.co/t/getting-cpu-spikes-because-of-elasticsearch/133998/2 "2018-06-28T08:13:55Z")

</div>

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