d2iq-archive / marathon

Deploy and manage containers (including Docker) on top of Apache Mesos at scale.
https://mesosphere.github.io/marathon/
Apache License 2.0
4.07k stars 843 forks source link

oom on 800MB limited container. #7214

Open f1-outsourcing opened 4 years ago

f1-outsourcing commented 4 years ago

Are there some java options I can set to prevent marathon out of memory errors. I am running with java 11, this version should be optimized to report on the correct container limits. Yet in my test environment with ~10 tasks, I still have oom with 800MB.

From this page [1] I have added -XX:+UseSerialGC -XX:-TieredCompilation, but I assume you know what needs to be set?

[1] https://stackoverflow.com/questions/53451103/java-using-much-more-memory-than-heap-size-or-size-correctly-docker-memory-limi