Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
None
-
1
-
1
-
Description
I am using JIRA Software Server in a Docker container. Java 8u131 or later supports the option to use container memory limits as Java heap size (see Oracle's article). I removed -Xmx -Xms, added the following options and started a container, but JIRA server showed the following error.
Options:
-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap
Error:
Setup: Your memory allocation pool settings need attention
JIRA runs in a Java virtual machine (JVM), and this JVM is allocated an amount of memory to enable JIRA to run. These amounts can be manually configured.
- The maximum memory allocation pool (-Xmx) is required to be at least 786m.
Is there any plan to support UseCGroupMemoryLimitForHeap option?
In addtion, Java 10 or later does not require the option and automatically detect container memory limits (see JDK bug database).