Jira - "out of space" PermGen

Hello,

I'm a relative tomcat newbie and have been having issues getting jira and confluence to run. I managed somehow to get jira setup, but confluence won't setup because it runs out of PermGen space at step 2.

Anyway, now I can't get Jira to even come up after entering userid/password. It fails due to lack of sufficient PermGen space. I've read quite a few google hits on the issue but none of the proposed solutions seems to work.

Below is a copy of my setenv.sh. Seems like I should have enough memory requested. Does anyone have any ideas?

Thanks,

DeWayne

=======setenv.sh=======

#!/bin/sh

#

export JAVA_OPTS='-Xms512m -Xmx512m -XX:PermSize=512m -XX:MaxPermSize=512m -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled

'

# added for jira

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

1 answer

1 accepted

Hi DeWayne,

I agree that your PermGen appears to be sufficient, if it is indeed allocated with 512m as suggested by the -XX:MaxPermSize=512m argument. However, are you sure that the input arguments are being passed to the JVM?

For example, if you are using Windows then you shouldn't be editing the setenv.sh but the setenv.bat or making the edits in the registry, as described in this document: https://confluence.atlassian.com/display/JIRA/Increasing+JIRA+Memory

I
also don't think you will get any value from using the argument -XX:+CMSPermGenSweepingEnabled if you are using JDK 1.6 because that functionality has actually been removed, so you might wish to consider removing that argument too: http://stackoverflow.com/questions/3717937/cmspermgensweepingenabled-vs-cmsclassunloadingenabled

Finally
, if you are sure that you have been configuring the correct files and the problem still persists then you should open a ticket with Support so that we can investigate the root cause of this issue.

All the best,
John

Hello John,

Your help was very much appreciated. I had changed setenv.sh due to many google hits recommending it, but given your question about being sure the args were being passed, I went back to verify. Turns out that even though the SuSE tomcat 6 distro has that script installed, it's never called from anywhere.

I made the changes to /usr/share/tomcat6/conf/tomcat6.conf(added CATALINA_OPTS with desired parms), recycled the appserver and, voila! Back in business. Thanks so much for the assist.

DeWayne

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

135 views 1 17
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you