From 84deea70f6e82aed7f97adbe9d14c416ddf809f3 Mon Sep 17 00:00:00 2001 From: Konrad `ktoso` Malawski Date: Tue, 11 Sep 2018 14:14:02 +0900 Subject: [PATCH] =doc Explain cgroup memory limit flags for docker (#25591) * =doc Explain cgroup memory limit flags for docker * Update deploy.md --- akka-docs/src/main/paradox/additional/deploy.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/akka-docs/src/main/paradox/additional/deploy.md b/akka-docs/src/main/paradox/additional/deploy.md index b113b7d2c6..f77af8ffd7 100644 --- a/akka-docs/src/main/paradox/additional/deploy.md +++ b/akka-docs/src/main/paradox/additional/deploy.md @@ -42,5 +42,7 @@ You can look at the @scala[@extref[Cluster with docker-compose example project](samples:akka-samples-cluster-docker-compose-scala)] to see what this looks like in practice. +For the JVM to run well in a Docker container, there are some general (not Akka specific) parameters that might need tuning. You may want to look into using [`-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap`](https://dzone.com/articles/running-a-jvm-in-a-container-without-getting-kille) options for your JVM later than 8u131, which makes it understand c-group memory limits. +