cptactionhank / docker-atlassian-jira

Atlassian JIRA Core wrapped in a Docker image
https://cptactionhank.github.io/docker-atlassian-jira
MIT License
621 stars 248 forks source link

Increase JVM max memory #73

Closed davidwmartines closed 6 years ago

davidwmartines commented 6 years ago

Hi, we are getting java.lang.OutOfMemoryError: GC overhead limit exceeded every couple weeks. We have >42k issues, and have read that bumping up the jvm memory from 768MB might help. I see we need to edit /opt/atlassian/jira/bin/setenv.sh. How would you recommend adding this configurability from an env var, to edit this file?

Thanks

cptactionhank commented 6 years ago

use the environment variable CATALINA_OPTS to set these e.g. -e CATALINA_OPTS='-Xmx4G'

salzamt commented 4 years ago

hey @cptactionhank thanks for this answer, took me quiet some time to find this, could you maybe add this to the docs? that would help a lot :)