# Memory Issue in elasticsearch

**URL:** <https://discuss.elastic.co/t/memory-issue-in-elasticsearch/47875>\
**Category:** Elasticsearch\
**Created:** [April 20, 2016, 8:12am UTC](https://discuss.elastic.co/t/memory-issue-in-elasticsearch/47875 "2016-04-20T08:12:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kartheek91](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@kartheek91](https://discuss.elastic.co/u/kartheek91)\
**Post date:** [April 20, 2016, 8:12am UTC](https://discuss.elastic.co/t/memory-issue-in-elasticsearch/47875/1 "2016-04-20T08:12:11Z")

</div>

We created two nodes to form a cluster google compute engine and I installed elasticsearch 2.2.0 i both nodes and working fine.

My question we created 13 GB memory for each memory but in marvel it is showing me 2GB memory and can any one help in this issue.

I tried GET /\_nodes/\_stats and it gave me all details but it is not able to solve the problem.

Thanks in advance

Kartheek Gummaluri

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 24, 2016, 3:27pm UTC](https://discuss.elastic.co/t/memory-issue-in-elasticsearch/47875/2 "2016-04-24T15:27:55Z")

</div>

You created GCE machines with 13 GB memory? And you're wondering why Elasticsearch's heap size is just 2 GB? The heap size is configured independently and has nothing to do with the RAM size. The size is set with startup options, which usually are set via /etc/default/elasticsearch or /etc/sysconfig/elasticsearch (depending on the OS).

---

<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, 10:56pm UTC](https://discuss.elastic.co/t/memory-issue-in-elasticsearch/47875/3 "2017-07-05T22:56:41Z")

</div>


