Dec 4, 2011

Rail ORM tomcat hibernate jvm settings permspace error

I've just started working on a small project using ORM and Railo.  I'm running Ubuntu linux and the tomcat 7 installers with not chnage to jvm settings.

The first HQL query I ran a recieved an permSpace memory error.  Not a huge deal but if your not used to the locations of the jvm settings it can be a bit of a challenge.  PermSize was set to 64mb on the standard install which was a little to low.

The locations of the files for a standard install are:

/opt/railo/tomcat/bin

in:  setenv.sh

I changed my settings to look like this:

-Xms128m -Xmx512m -XX:+CMSIncrementalMode -XX:+ExplicitGCInvokesConcurrent -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=384m -XX:PermSize=384m -XX:+UseConcMarkSweepGC

Part of this was from Kai's example's which can be found here:  http://t.co/aShOtpM

I have less RAM to work with so my settings are smaller.

my setenv.sh file looks like:

Railo can then re restarted by:

/etc/init.d/railo_ctl restart


My application continued to run as expected.



No comments:

Post a Comment