-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java VM limits should match (per Atlassian recommendation) #50
Comments
The docker-compose.yml needs to be adjusted. You need to specify CATALINA_PARAMETER1, CATALINA_PARAMETER_VALUE1, and so on to set the CATALINA_OPTS. For Jira it's JVM_MINIMUM_MEMORY and JVM_MAXIMUM_MEMORY. The default configuration if you don't specify additional environment variables:
|
Jira Image is configured differently. This changed recently: https://github.com/blacklabelops/jira#a-word-about-memory-usage |
I'm confused.
Also, per the original reason for this issue, their docs still say to set the min and max the same. To cover off possible versioning issues, is this how the environment section should look like for these vars in the docker compose file?
|
Looks like Jira uses the JAVA_OPTS environment variable. You can check this in /opt/jira/bin/setenv.sh in the Docker container. You need to specify:
The docker-entrypoint script uses the environment variables you specify in the Docker compose file to configure the variables in setenv.sh for Confluence/Jira. |
According to Atlassian documentation they changed the memory configuration also for Confluence: Can somebody check if either CATALINA_OPTS or JVM_MINIMUM_MEMORY, JVM_MAXIMUM_MEMORY still works? Maybe we will need an issue here. |
The Confluence image is fine. -Xmx1024m, -Xms1024m, and -XX:+UseG1GC are still configured via CATALINA_OPTS in /opt/atlassian/confluence/bin/setenv.sh. -XX:MaxPermSize is not set at all. |
Thank you! |
The current blacklabelops
docker-compose.yaml
Java VM settings are as follows:The Atlassian recommendations on this page state:
So it seems that this should be changed to:
Same applies to the JIRA config... although (for JIRA) I do wonder at the blacklabelops default Xmx value of 1 GB, when the general guidance from Atlassian themselves is:
Bumping to 1 GB seems reasonable to me, but... Java isn't my thing (thankfully) and I'm wary of direct guidance saying not to allocate too much!
The text was updated successfully, but these errors were encountered: