# ES\_JAVA\_OPTS exceding memory usage

**URL:** <https://discuss.elastic.co/t/es-java-opts-exceding-memory-usage/216888>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [January 28, 2020, 5:15pm UTC](https://discuss.elastic.co/t/es-java-opts-exceding-memory-usage/216888 "2020-01-28T17:15:12Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Sirius](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sirius/32/47012_2.png) [@Sirius](https://discuss.elastic.co/u/Sirius)\
**Post date:** [January 28, 2020, 5:15pm UTC](https://discuss.elastic.co/t/es-java-opts-exceding-memory-usage/216888/1 "2020-01-28T17:15:12Z")

</div>

Hi,

I'm running an ES cluster with 3 nodes using docker compose, my 3 nodes have the same below environment JAVA OPTS configuration. My understanding setting such value it would limit the memory usage, my node1 and 2 are rounding the 20 gb, it's ok, but my concern is why my node3 is exceding to 25 gb of usage.

```
environment:
  - bootstrap.memory_lock=true
  - "ES_JAVA_OPTS=-Xms20g -Xmx20g"

```

Example,

node3:  
 ![2020-01-28 11_05_20-root@sacvl1191__el1_app_elkstack_docker](https://us1.discourse-cdn.com/elastic/original/3X/4/c/4ced69fa3f7603750c6b255e0ab374dee0e86925.png)

node1 and 2:  
 ![node1](https://us1.discourse-cdn.com/elastic/original/3X/9/6/964f0885733f3c1e6a09752d6ca9a1d954c0cd2b.png)

Any help is very appreciable .

Regards,  
Jorge

---

_[View the full topic](https://discuss.elastic.co/t/es-java-opts-exceding-memory-usage/216888)._
