# Elasticsearch Memory Usage Problem in Docker Container

**URL:** <https://discuss.elastic.co/t/elasticsearch-memory-usage-problem-in-docker-container/168204>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [February 13, 2019, 11:48am UTC](https://discuss.elastic.co/t/elasticsearch-memory-usage-problem-in-docker-container/168204 "2019-02-13T11:48:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nakyuz](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@nakyuz](https://discuss.elastic.co/u/nakyuz)\
**Post date:** [February 13, 2019, 11:48am UTC](https://discuss.elastic.co/t/elasticsearch-memory-usage-problem-in-docker-container/168204/1 "2019-02-13T11:48:53Z")

</div>

I have a problem about memory usage of elasticsearch. In my system, `60000 documents` are written to the database `per hour` .

But memory usage is constantly increasing over time. I don't understand why it is always increasing. Elasticsearch container ram capacity is `10GB` and `heapsize 5GB for JVM` . I suspect that caches are kept in memory, but I have not encountered an abnormal situation in elastic search configuration settings. I check this query: `GET /_stats`

After a certain period, memory usage of container becomes 100% and elasticsearch can't response any query.

I would be very pleased if you can help me.

---

<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:** [March 13, 2019, 11:55am UTC](https://discuss.elastic.co/t/elasticsearch-memory-usage-problem-in-docker-container/168204/2 "2019-03-13T11:55:14Z")

</div>

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