File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ There are at least two ways the above can be achieved:
3939 supported by the JVM, set `-XX:+UnlockExperimentalVMOptions
4040 -XX:+UseCGroupMemoryLimitForHeap`.
4141+
42+ [NOTE]
43+ ====
44+ The `UseCGroupMemoryLimitForHeap` option has been removed in JDK 11. Use `-XX:+UseContainerSupport` instead.
45+ ====
46+ +
4247This sets `-XX:MaxRAM` to the container memory limit, and the maximum heap size
4348(`-XX:MaxHeapSize` / `-Xmx`) to 1/`-XX:MaxRAMFraction` (1/4 by default).
4449
@@ -102,5 +107,10 @@ JAVA_TOOL_OPTIONS="-XX:+UnlockExperimentalVMOptions
102107-XX:+UseCGroupMemoryLimitForHeap -Dsun.zip.disableMemoryMapping=true"
103108----
104109
110+ [NOTE]
111+ ====
112+ The `UseCGroupMemoryLimitForHeap` option has been removed in JDK 11. Use `-XX:+UseContainerSupport` instead.
113+ ====
114+
105115This does not guarantee that additional options are not required, but is
106116intended to be a helpful starting point.
You can’t perform that action at this time.
0 commit comments