You are not logged in.

#1 2011-10-11 18:46:32

Intrepidus
Member
Registered: 2007-02-08
Posts: 54

[SOLVED] tomcat6, jre6, trying to increase available memory

I'm attempting to install a copy of JIRA on Archlinux and have been encountering OutOfMemory exception. Per JIRA's docs, I created the file 'setenv.sh' and placed it in /usr/share/tomcat6/bin/, with the following contents:

export CATALINA_OPTS="$CATALINA_OPTS -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Xms256m -Xmx1024m -XX:MaxPermSize=512m"

I also tried placing the above line in /usr/share/tomcat6/bin/catalina.sh, per information I found on another site. In catalina.sh I also tried:

export JAVA_OPTS="-Djava.awt.headless=true -server -Xms256m -Xmx1024m -XX:MaxPermSize=512m"

None of these worked. I am basing "worked" off the assumption that if they did, the line in catalina.out that mentions "Maximum Allowable Memory" would change from its apparent default (247MB) to one of the values I chose.

I've never used tomcat before, so hopefully I just have the settings in the wrong configuration file. As the title says, using tomcat6, jre6 (from AUR).

EDIT:

I've tried a bunch of minor things to no avail; removed the 'export' statement and tried both in setenv.sh; same thing in catalina.sh. No effect. Still showing 247MB max, and "Total Memory : 15MB". No luck at all.

Last edited by Intrepidus (2011-10-11 20:19:34)

Offline

#2 2011-10-11 20:19:19

Intrepidus
Member
Registered: 2007-02-08
Posts: 54

Re: [SOLVED] tomcat6, jre6, trying to increase available memory

It was in /etc/conf.d/tomcat6. I hate myself.

Offline

Board footer

Powered by FluxBB