# The right value of vm.max\_map\_count for elasticsearch

**URL:** <https://discuss.elastic.co/t/the-right-value-of-vm-max-map-count-for-elasticsearch/20029>\
**Category:** Elasticsearch\
**Created:** [October 1, 2014, 3:55pm UTC](https://discuss.elastic.co/t/the-right-value-of-vm-max-map-count-for-elasticsearch/20029 "2014-10-01T15:55:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crazw\_jia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/crazw_jia/32/1247_2.png) [@Crazw\_jia](https://discuss.elastic.co/u/Crazw_jia)\
**Post date:** [October 1, 2014, 3:55pm UTC](https://discuss.elastic.co/t/the-right-value-of-vm-max-map-count-for-elasticsearch/20029/1 "2014-10-01T15:55:09Z")

</div>

I found my cluster health is red,

and the es receive log events less and less

The phenomenon as follow:

So I checked the log of elasticsearch.

(more details：[https://github.com/crazw/biglog/blob/master/elasticseatch.log](https://github.com/crazw/biglog/blob/master/elasticseatch.log)

)

information:  
[http://blog.thetaphi.de/2012/07/use-lucenes-mmapdirectory-on-64bit.html](http://blog.thetaphi.de/2012/07/use-lucenes-mmapdirectory-on-64bit.html)]];  
nested: IOException[Map failed:  
MMapIndexInput(path="/home/elasticsearch/data/elasticsearch/nodes/0/indices/logstash-2014.10.01/3/index/\_hi\_es090\_0.tim")  
[this may be caused by lack of enough unfragmented virtual address space or too  
restrictive virtual memory limits enforced by the operating system,  
preventing us to map a chunk of 3054244 bytes. Please review 'ulimit -v',  
'ulimit -m' (both should return 'unlimited'), and 'sysctl vm.max\_map\_count'.  
More information:  
[http://blog.thetaphi.de/2012/07/use-lucenes-mmapdirectory-on-64bit.html](http://blog.thetaphi.de/2012/07/use-lucenes-mmapdirectory-on-64bit.html)]];  
]]

So what should I set the value of vm.max\_map\_count .

Does anybody have such experience and give me a suggestion?

--  
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/e16a6c75-af19-4947-bb0d-884fae426bbc%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e16a6c75-af19-4947-bb0d-884fae426bbc%40googlegroups.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:58am UTC](https://discuss.elastic.co/t/the-right-value-of-vm-max-map-count-for-elasticsearch/20029/2 "2017-07-06T00:58:56Z")

</div>


