# How to limit off-heap memory usage

**URL:** https://discuss.elastic.co/t/how-to-limit-off-heap-memory-usage/189288
**Category:** Elasticsearch
**Created:** [July 8, 2019, 5:52am UTC](https://discuss.elastic.co/t/how-to-limit-off-heap-memory-usage/189288 "2019-07-08T05:52:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![cherriod](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cherriod/32/49584_2.png) [@cherriod](https://discuss.elastic.co/u/cherriod)
#### Post date: [July 8, 2019, 5:52am UTC](https://discuss.elastic.co/t/how-to-limit-off-heap-memory-usage/189288/1 "2019-07-08T05:52:18Z")

</div>

Hi!  
I use ES 1.7 on Win2012R2 with store type mmapfs by default. It this case ES loads index in RAM and fills all of it. With a high load on the record index, after some time the product falls. I tried advice from [this](https://discuss.elastic.co/t/possibility-to-limit-memory-usage-of-mmap-fs/24908) question, but it did't help me. Please help me, how can I set memory limitation for off-heap JVM in Windows?

---

<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: [August 5, 2019, 5:52am UTC](https://discuss.elastic.co/t/how-to-limit-off-heap-memory-usage/189288/2 "2019-08-05T05:52:23Z")

</div>

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