-
Bug
-
Resolution: Cannot Reproduce
-
Medium
-
None
-
4.1.1
-
4.01
-
As can be seen in this thread the setenv.sh is not correct in the standalone distribution of 4.1.1
http://forums.atlassian.com/thread.jspa?threadID=43700&start=0&tstart=0
There are a lot of variables that somehow are not escaped right and therefore do not affect the memory setting at all.
Perm gen stays at 84 MB and therefore the script terminates with out of memory errors.
With a simple string like this (instead of the large script) it could be sorted out:
JAVA_OPTS="-Xms128m -Xmx512m -XX:MaxPermSize=256m -Dfile.encoding=UTF8 -Djava.awt.headless=true -Datlassian.standalone=JIRA -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true"
export JAVA_OPTS
We had a similar problem already in 4.0 see below....
--------------------
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 (
- is cloned from
-
JRASERVER-19820 Unix shell startup script doen't set PermGen option for Sun JVM
-
- Closed
-
- is related to
-
JRASERVER-21159 PermGen memory not set, if JAVA_HOME is set incorrectly or missing
-
- Closed
-