[mc] Use G1 GC by default and simplify max memory setting

For #126
This commit is contained in:
Geoff Bourne
2017-02-14 22:15:36 -06:00
parent 134eaedf23
commit f5dbbcc2c6
3 changed files with 12 additions and 6 deletions
+4 -3
View File
@@ -608,10 +608,11 @@ By default, server checks connecting players against Minecraft's account databas
### Memory Limit
The Java memory limit can be adjusted using the `JVM_OPTS` environment variable, where the default is
the setting shown in the example (max and min at 1024 MB):
By default the image declares a Java memory limit of 1 GB. That can be adjusted
higher (or lower) by setting the `MAX_MEMORY` environment variable. For example,
the following increases the memory limit to 8 GB:
docker run -e 'JVM_OPTS=-Xmx1024M -Xms1024M' ...
docker run -e MAX_MEMORY=8G ...
### /data ownership