# Understand ElasticSearch 5.2.2 environment configuration

**URL:** <https://discuss.elastic.co/t/understand-elasticsearch-5-2-2-environment-configuration/90226>\
**Category:** Elasticsearch\
**Created:** [June 21, 2017, 8:34am UTC](https://discuss.elastic.co/t/understand-elasticsearch-5-2-2-environment-configuration/90226 "2017-06-21T08:34:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eramitsinha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eramitsinha/32/35032_2.png) [@eramitsinha](https://discuss.elastic.co/u/eramitsinha)\
**Post date:** [June 21, 2017, 8:34am UTC](https://discuss.elastic.co/t/understand-elasticsearch-5-2-2-environment-configuration/90226/1 "2017-06-21T08:34:23Z")

</div>

Hi,

I am migrating to Elastic Search 5.2.2 from 2.3.1, we are seeing performance Issue while indexing during Load Testing.

We do have 20000 to 40000 on an average id and its content being indexed.  
Typically our Shard size is 25 G. We have 150 indexes  
No of Shard=5  
Replica = 1  
No of Master=3  
No of Data Node=3

Still not able to figure out performance reason so would like to understand following configuration idle for Production/Recommended in Prod  
max number of files   
vm.max\_map\_count   
max user processes   
Xms(jvm.options)   
Xmx(jvm.options)

Thanks,  
Amit Sinha.

---

<div class="post-metadata">

**Author:** ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)\
**Post date:** [June 23, 2017, 2:18pm UTC](https://discuss.elastic.co/t/understand-elasticsearch-5-2-2-environment-configuration/90226/2 "2017-06-23T14:18:55Z")

</div>

> [@eramitsinha](#):
>
> max number of files   
> vm.max\_map\_count   
> max user processes   
> Xms(jvm.options)   
> Xmx(jvm.options)

- max number of files - as per the documentation, we recommend setting this to _at least_ 65536
- vm.max\_map\_count - we require at least 262144
- max user processes - we require at least 2048 for `nproc`

You can find the documentation for these here: [Bootstrap Checks | Elasticsearch Reference [5.4] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/bootstrap-checks.html)

For `Xms` and `Xmx`, we usually recommend 1/2 of the machines ram, but no more than 31gb, so if you have 16gb of RAM, you would set these to 8gb (as an example).

---

<div class="post-metadata">

**Author:** ![eramitsinha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eramitsinha/32/35032_2.png) [@eramitsinha](https://discuss.elastic.co/u/eramitsinha)\
**Post date:** [June 23, 2017, 10:58pm UTC](https://discuss.elastic.co/t/understand-elasticsearch-5-2-2-environment-configuration/90226/3 "2017-06-23T22:58:27Z")

</div>

Thank You.

---

<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 21, 2017, 10:58pm UTC](https://discuss.elastic.co/t/understand-elasticsearch-5-2-2-environment-configuration/90226/4 "2017-07-21T22:58:28Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
