# The problems of memory of ES7.12

**URL:** https://discuss.elastic.co/t/the-problems-of-memory-of-es7-12/273461
**Category:** Elasticsearch
**Created:** [May 20, 2021, 1:58am UTC](https://discuss.elastic.co/t/the-problems-of-memory-of-es7-12/273461 "2021-05-20T01:58:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lichuandev](https://avatars.discourse-cdn.com/v4/letter/l/7bcc69/32.png) [@lichuandev](https://discuss.elastic.co/u/lichuandev)
#### Post date: [May 20, 2021, 1:58am UTC](https://discuss.elastic.co/t/the-problems-of-memory-of-es7-12/273461/1 "2021-05-20T01:58:15Z")

</div>

I use ES to store files, and the size of each file is within 100kb. The following two problems encountered in the use process have not been solved:  
1.We set the requests cache: false, and the memory will still slowly reach 99%. Even if we only use -XHEAD to determine whether there is no other operations, the memory will be 99%. Is there any way to prevent the memory usage from being so high?  
2.When we use the 7.4 version, although the memory is 99%, the system can still run normally for a long time, but the updated version after 7.11 will cause the system to fail to run because the memory is 100% every 2 days. The high version cannot roll back the low version, so we are very painful and have to restart the service every two days.

Cluster：No  
CPU：X5690，3.47GHz  
Memory：64G  
System：WinServer 2008 R2 Enterprise  
elasticsearch.yml：Default configuration  
JAVA：-Xmx30g -Xms30g  
The amount of data：600W  
Disk usage：400G  
Index number：7  
mapping：  
{  
"order": 0,  
"index\_patterns": [  
"db\_f\_\*",  
],  
"settings": {  
"index": {  
"max\_result\_window": "50000",  
"refresh\_interval": "1m",  
"requests": {  
"cache": {  
"enable": "false"  
}  
},  
"number\_of\_shards": "4",  
"translog": {  
"flush\_threshold\_size": "500m",  
"sync\_interval": "120s",  
"durability": "async"  
},  
"number\_of\_replicas": "0"  
}  
},  
"mappings": {  
"properties": {  
"iD": {  
"type": "keyword"  
},  
"data": {  
"type": "binary"  
},  
"date": {  
"type": "long"  
}  
}  
},  
"aliases": {}  
}

---

<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: [May 20, 2021, 2:10am UTC](https://discuss.elastic.co/t/the-problems-of-memory-of-es7-12/273461/2 "2021-05-20T02:10:04Z")

</div>

If you aren't using 7.12.1 then please try on that. I've noticed higher than expected memory use with 7.12.0 and the upgrade helped.

> [@lichuandev](#):
>
> "translog": {  
> "flush\_threshold\_size": "500m",  
> "sync\_interval": "120s",  
> "durability": "async"  
> },

Can I ask why are you changing these settings?

---

<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: [June 17, 2021, 2:10am UTC](https://discuss.elastic.co/t/the-problems-of-memory-of-es7-12/273461/3 "2021-06-17T02:10:56Z")

</div>

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