Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-19820

Unix shell startup script doen't set PermGen option for Sun JVM

    XMLWordPrintable

Details

    Description

      If the standalone JIRA is installed under path consisting the space character e.g. "/opt/support applications/atlassian-jira-enterprise-4.0-standalone"

      The setenv.sh script fails to set correctly the installation path variable "PRGDIR" and in the same time detect the JVM type.

      As the result of this bug the JVM is set with the default amount of memory assigned to PermGen by Tomcat - 64MB!

      Since for JIRA 4.0 requires much more memory, in matter of minutes the application crashes with "javax.servlet.ServletException: PermGen space"

      We should escape variables in the following places

      PRGDIR=`dirname $0`					      |	PRGDIR=`dirname "$0"`
      JAVA_OPTS="-Xms128m -Xmx256m $JAVA_OPTS -Djava.awt.headless=t (
      							      (
      # Perm Gen size needs to be increased if encountering OutOfMe (
      JIRA_MAX_PERM_SIZE=256m					      (
      if [ -f "${PRGDIR}/permgen.sh" ]; then			      (
          echo "Detecting JVM PermGen support..."		      (
          . ${PRGDIR}/permgen.sh				      |	    . "${PRGDIR}/permgen.sh"
          if [ $JAVA_PERMGEN_SUPPORTED = "true" ]; then	      (
              echo "PermGen switch is supported. Setting to ${JIRA_ (
              JAVA_OPTS="-XX:MaxPermSize=${JIRA_MAX_PERM_SIZE} ${JA (
          else						      (
              echo "PermGen switch is NOT supported and will NOT be (
          fi							      (
      fi							      (
      							      (
      # use this if you want to import data without notifications   (
      #JAVA_OPTS=" -Datlassian.mail.senddisabled=true -Datlassian.m (
      							      (
      export JAVA_OPTS					      (
      							      (
      echo "If you encounter issues starting up JIRA Standalone Edi (
      

      Attachments

        Issue Links

          Activity

            People

              pleschev Peter Leschev
              bdziedzic Bogdan Dziedzic [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: