# High CPU on windows server 2012

**URL:** <https://discuss.elastic.co/t/high-cpu-on-windows-server-2012/15749>\
**Category:** Elasticsearch\
**Created:** [February 12, 2014, 8:07am UTC](https://discuss.elastic.co/t/high-cpu-on-windows-server-2012/15749 "2014-02-12T08:07:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wesley\_Creteur](https://avatars.discourse-cdn.com/v4/letter/w/65b543/32.png) [@Wesley\_Creteur](https://discuss.elastic.co/u/Wesley_Creteur)\
**Post date:** [February 12, 2014, 8:07am UTC](https://discuss.elastic.co/t/high-cpu-on-windows-server-2012/15749/1 "2014-02-12T08:07:53Z")

</div>

Hi everyone,

I'm using elasticsearch for my webshop products to have a fast  
search/navigation and have approximate 5000 products (85000 documents  
indexed). I'm using elasticsearch as service and it works fine, but it's  
eating my CPU. I think my use of elasticsearch is very minimal and still my  
CPU is hitting an avg of 97%. When i stop the service everything is going  
back to normal, so i'm sure it's the elasticsearch (64-bits) service. Is  
there anything i can do? I"m using windows server 2012, 4 CPU cores, 16 GB  
RAM. I have (for now) 1 cluster with 1 node and 2 indexes of 5 shards. I'm  
running elasticsearch on the same server of my website.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/00a510c2-c4f7-49d2-a4f6-93c84ead8ed8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/00a510c2-c4f7-49d2-a4f6-93c84ead8ed8%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Wesley\_Creteur](https://avatars.discourse-cdn.com/v4/letter/w/65b543/32.png) [@Wesley\_Creteur](https://discuss.elastic.co/u/Wesley_Creteur)\
**Post date:** [February 12, 2014, 9:02am UTC](https://discuss.elastic.co/t/high-cpu-on-windows-server-2012/15749/2 "2014-02-12T09:02:25Z")

</div>

Would it help if i change my structure to 3 nodes, 1 shards and 2 replicas?

Op woensdag 12 februari 2014 09:07:53 UTC+1 schreef Wesley Creteur:

> Hi everyone,
> 
> I'm using elasticsearch for my webshop products to have a fast  
> search/navigation and have approximate 5000 products (85000 documents  
> indexed). I'm using elasticsearch as service and it works fine, but it's  
> eating my CPU. I think my use of elasticsearch is very minimal and still my  
> CPU is hitting an avg of 97%. When i stop the service everything is going  
> back to normal, so i'm sure it's the elasticsearch (64-bits) service. Is  
> there anything i can do? I"m using windows server 2012, 4 CPU cores, 16 GB  
> RAM. I have (for now) 1 cluster with 1 node and 2 indexes of 5 shards. I'm  
> running elasticsearch on the same server of my website.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6394c55f-0b3b-4694-a411-e801d17cd408%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6394c55f-0b3b-4694-a411-e801d17cd408%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Binh\_Ly](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@Binh\_Ly](https://discuss.elastic.co/u/Binh_Ly)\
**Post date:** [February 12, 2014, 3:00pm UTC](https://discuss.elastic.co/t/high-cpu-on-windows-server-2012/15749/3 "2014-02-12T15:00:07Z")

</div>

May I ask what is your ES\_MAX\_MEM setting? Is it possible that it is set  
too low - like the default 1G?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6effe981-472b-4a0b-850d-addc00228c50%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6effe981-472b-4a0b-850d-addc00228c50%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Wesley\_Creteur](https://avatars.discourse-cdn.com/v4/letter/w/65b543/32.png) [@Wesley\_Creteur](https://discuss.elastic.co/u/Wesley_Creteur)\
**Post date:** [February 12, 2014, 3:24pm UTC](https://discuss.elastic.co/t/high-cpu-on-windows-server-2012/15749/4 "2014-02-12T15:24:10Z")

</div>

I'm using 3Gb. Is that sufficient?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a8376d35-05fc-4efd-b388-10fc0b38c902%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a8376d35-05fc-4efd-b388-10fc0b38c902%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Binh\_Ly](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@Binh\_Ly](https://discuss.elastic.co/u/Binh_Ly)\
**Post date:** [February 12, 2014, 7:26pm UTC](https://discuss.elastic.co/t/high-cpu-on-windows-server-2012/15749/5 "2014-02-12T19:26:04Z")

</div>

I'd try to up it to 8GB, assuming of course you still have a lot (like  
close to 8GB) free. If that still doesn't work, once you get to the high  
CPU state, try to run this and it'll tell you what threads in ES is doing  
what with the CPU:

curl "localhost:9200/\_nodes/hot\_threads?pretty"

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/630ca592-e078-41fe-b049-7a65a65c5b29%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/630ca592-e078-41fe-b049-7a65a65c5b29%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 1:50am UTC](https://discuss.elastic.co/t/high-cpu-on-windows-server-2012/15749/6 "2017-07-06T01:50:42Z")

</div>


