voxpupuli / puppet-jira

Atlassian JIRA Puppet Module
https://forge.puppet.com/puppet/jira
Apache License 2.0
62 stars 143 forks source link

JVM_REQUIRED_ARGS is missing -Dorg.dom4j.factory=com.atlassian.core.xml.InterningDocumentFactory #309

Closed mojibake-umd closed 3 years ago

mojibake-umd commented 4 years ago

I do not know when -Dorg.dom4j.factory=com.atlassian.core.xml.InterningDocumentFactory was added to JVM_REQUIRED_ARGS by Atlassian, but it is missing from setenv.sh as it is being delivered by ERB template.

I was able to get around by setting the following in Hiera. jira::java_opts: '-XX:InitialCodeCacheSize=32m -XX:ReservedCodeCacheSize=512m -Dorg.dom4j.factory=com.atlassian.core.xml.InterningDocumentFactory'

-XX:InitialCodeCacheSize=32m -XX:ReservedCodeCacheSize=512m is documented in #308

oranenj commented 3 years ago

Fixed in current master

<%- if scope.call_function('versioncmp', [@version, '8.11.0']) > 0 -%>
JVM_REQUIRED_ARGS='-Djava.awt.headless=true -Datlassian.standalone=JIRA -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Dorg.dom4j.factory=com.atlassian.core.xml.InterningDocumentFactory'
<% else -%>