Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-23267

Auto installer ignores JAVA_OPTS if defined twice

    XMLWordPrintable

Details

    Description

      So if in the old setenv.sh we had something like this defined:

      JAVA_OPTS="$JAVA_OPTS -Dhttp.proxyHost=proxy.cas.local -Dhttp.proxyPort=3128 -Dhttp.nonProxyHosts=*.cas.local|192.168.*' -Djavax.net.ssl.trustStore=/opt/atlassian/jssecacerts"
      JAVA_OPTS="-Xms256m -Xmx512m -XX:MaxPermSize=256m $JAVA_OPTS -Djava.awt.headless=true "
      export JAVA_HOME JAVA_OPTS
      

      The Auto installer will produce the following setenv.sh:

      JAVA_OPTS="$JAVA_OPTS -Dhttp.proxyHost=proxy.cas.local -Dhttp.proxyPort=3128 -Dhttp.nonProxyHosts=*.cas.local|192.168.*' -Djavax.net.ssl.trustStore=/opt/atlassian/jssecacerts"
      export JAVA_OPTS
      

      The second declaration was ignored. This caused Confluence to run out of memory when upgrading to 4.0

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhartono Roy Hartono [Atlassian]
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: