# Elixir docker container very high memory usage

**URL:** <https://forum.elixirforum.com/t/elixir-docker-container-very-high-memory-usage/57261>\
**Category:** Questions\
**Tags:** deployment, troubleshooting\
**Created:** [July 27, 2023, 8:29am UTC](https://forum.elixirforum.com/t/elixir-docker-container-very-high-memory-usage/57261 "2023-07-27T08:29:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![everte](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/everte/32/20957_2.png) [@everte](https://forum.elixirforum.com/u/everte)\
**Post date:** [July 27, 2023, 8:29am UTC](https://forum.elixirforum.com/t/elixir-docker-container-very-high-memory-usage/57261/1 "2023-07-27T08:29:42Z")

</div>

Hello,

This was brought up by Jannus on discord and we did not figure out the reason, hence the post here. I can fully reproduce his findings.

There seems to be some variable at play that when running the standard Elixir container (`docker run -it elixir`) it will consume 1.5 to 2.0GB of memory in stead of the expected ~60MB.

Here you can see it consuming 1.5GB of memory on my desktop computer (with kernel 6.4.6)

 ![image](https://forum.elixirforum.com/uploads/default/original/3X/c/7/c761f51bdc5ec3ea4af665457247de18e569e7f6.jpeg)

On a vps/vm with ubuntu 22.04 (kernel 5.15.0-73) it’s still fine:

 ![image](https://forum.elixirforum.com/uploads/default/original/3X/1/0/10b5c0699636c398e6f2fff6d7866969014d7952.jpeg)

Both are just the `latest` on amd64 architecture. I also tried some older tags and variations with OTP26/OTP25 but that did not seem to make a difference.

Any tips on how to further debug and find the root cause would be appreciated!

---

<div class="post-metadata">

**Author:** ![everte](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/everte/32/20957_2.png) [@everte](https://forum.elixirforum.com/u/everte)\
**Post date:** [July 27, 2023, 8:34am UTC](https://forum.elixirforum.com/t/elixir-docker-container-very-high-memory-usage/57261/2 "2023-07-27T08:34:02Z")

</div>

I had not seen there was already a topic about it: [Elixir / Erlang docker containers RAM usage on different OS's / Kernels](https://forum.elixirforum.com/t/elixir-erlang-docker-containers-ram-usage-on-different-oss-kernels/57251)

This can be closed as a duplicate.

---

<div class="post-metadata">

**Author:** ![LostKobrakai](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/lostkobrakai/32/3072_2.png) [@LostKobrakai](https://forum.elixirforum.com/u/LostKobrakai)\
**Post date:** [July 27, 2023, 8:53am UTC](https://forum.elixirforum.com/t/elixir-docker-container-very-high-memory-usage/57261/3 "2023-07-27T08:53:51Z")

</div>


