# Environment variable values

**URL:** <https://discuss.elastic.co/t/environment-variable-values/20197>\
**Category:** Elasticsearch\
**Created:** [October 11, 2014, 9:20am UTC](https://discuss.elastic.co/t/environment-variable-values/20197 "2014-10-11T09:20:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepak\_R\_K](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@Deepak\_R\_K](https://discuss.elastic.co/u/Deepak_R_K)\
**Post date:** [October 11, 2014, 9:20am UTC](https://discuss.elastic.co/t/environment-variable-values/20197/1 "2014-10-11T09:20:33Z")

</div>

Hi All,

We are using elasticsearch in production . Currently we are planning to  
migrate on bigger ( 30 GB RAM/ 8 core CPU ) server .  
Can anyone suggest us what would be best values for ES\_HEAP\_SIZE ,  
ES\_MIN\_MEM , ES\_MAX\_MEM if RAM memory is 30 GB .

Thanks  
Deepak

--  
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/868af2d5-38d1-472d-bbcb-f209399f55b7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/868af2d5-38d1-472d-bbcb-f209399f55b7%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 11, 2014, 9:45am UTC](https://discuss.elastic.co/t/environment-variable-values/20197/2 "2014-10-11T09:45:58Z")

</div>

Only set ES\_HAP\_SIZE, there is no point setting all 3 separately.  
Best practise is to use 50% of system RAM, in your case that'd be 15GB.

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

On 11 October 2014 20:20, Deepak R K [dpakrk@gmail.com](mailto:dpakrk@gmail.com) wrote:

> Hi All,
> 
> We are using elasticsearch in production . Currently we are planning to  
> migrate on bigger ( 30 GB RAM/ 8 core CPU ) server .  
> Can anyone suggest us what would be best values for ES\_HEAP\_SIZE ,  
> ES\_MIN\_MEM , ES\_MAX\_MEM if RAM memory is 30 GB .
> 
> Thanks  
> Deepak
> 
> --  
> 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/868af2d5-38d1-472d-bbcb-f209399f55b7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/868af2d5-38d1-472d-bbcb-f209399f55b7%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/868af2d5-38d1-472d-bbcb-f209399f55b7%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/868af2d5-38d1-472d-bbcb-f209399f55b7%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAEM624bms%2Bw%3D-10SAhMxR\_AabEJMXSebY7%3DZ2jHx1j4KDJtYeA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624bms%2Bw%3D-10SAhMxR_AabEJMXSebY7%3DZ2jHx1j4KDJtYeA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:56am UTC](https://discuss.elastic.co/t/environment-variable-values/20197/3 "2017-07-06T00:56:50Z")

</div>


