Memory Issue in elasticsearch

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

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).