# CPU Usage

**URL:** <https://discuss.elastic.co/t/cpu-usage/38116>\
**Category:** Elasticsearch\
**Created:** [December 29, 2015, 4:24pm UTC](https://discuss.elastic.co/t/cpu-usage/38116 "2015-12-29T16:24:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tommoholmes10](https://avatars.discourse-cdn.com/v4/letter/t/ed8c4c/32.png) [@tommoholmes10](https://discuss.elastic.co/u/tommoholmes10)\
**Post date:** [December 29, 2015, 4:24pm UTC](https://discuss.elastic.co/t/cpu-usage/38116/1 "2015-12-29T16:24:00Z")

</div>

I have some question  
I run 2 nodes with elasticsearch 2.1  
and I run to check all proccess with curl localhost:9200/\_nodes/stats?pretty=true  
and I get  
"os" : {  
"timestamp" : 1451405974295,  
"load\_average" : 0.73,  
"mem" : {  
"total\_in\_bytes" : 2097991680,  
"free\_in\_bytes" : 28123136,  
"used\_in\_bytes" : 2069868544,  
"free\_percent" : 1,  
"used\_percent" : 99  
},

but when I check use terminal use top  
my cpu usage verry small only 50% when I sum all my process  
In my question is why I get diffrent use curl localhost:9200/\_nodes/stats?pretty=true and top

---

<div class="post-metadata">

**Author:** ![AdaYang](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@AdaYang](https://discuss.elastic.co/u/AdaYang)\
**Post date:** [December 29, 2015, 7:10pm UTC](https://discuss.elastic.co/t/cpu-usage/38116/2 "2015-12-29T19:10:34Z")

</div>

how much memory you assign to run elasticsearch server?

---

<div class="post-metadata">

**Author:** ![tommoholmes10](https://avatars.discourse-cdn.com/v4/letter/t/ed8c4c/32.png) [@tommoholmes10](https://discuss.elastic.co/u/tommoholmes10)\
**Post date:** [December 29, 2015, 10:25pm UTC](https://discuss.elastic.co/t/cpu-usage/38116/3 "2015-12-29T22:25:48Z")

</div>

if I run curl -XGET '[http://localhost:9200/\_cluster/stats?human&pretty](http://localhost:9200/_cluster/stats?human&pretty)' I get  
"mem" : {  
"heap\_used" : "324.7mb",  
"heap\_used\_in\_bytes" : 340546968,  
"heap\_max" : "495mb",  
"heap\_max\_in\_bytes" : 519045120  
},  
"threads" : 79  
},  
I set per node ES\_HEAP\_SIZE=256m

My server have 2 GB

---

<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 5, 2017, 11:27pm UTC](https://discuss.elastic.co/t/cpu-usage/38116/4 "2017-07-05T23:27:59Z")

</div>


