Error: java.lang.OutOfMemoryError: PermGen space

Need help? Post your questions here.

Moderator: moderators

Error: java.lang.OutOfMemoryError: PermGen space

Postby kundan » Tue Apr 14, 2009 4:54 am

Hi
i am getting following error with web application deployed in tomcat 5.5.16
and IE 6 i have tried cleaning up the work folder and tomcat chache and it works fine for some time before again throwing the error

dwr.engine._remoteHandleCallback('3','0',"jfreechart-48022.jpeg");
java.lang.OutOfMemoryError: PermGen space

also there is a java script error as DWREngine not defined

When i run same web application in tomcat 5.5.27
and FireFox 3.0 i dont get these error.

the application has 2 be deployed in IE so plz help as to what i should do
kundan
 
Posts: 1
Joined: Tue Apr 14, 2009 4:41 am

Postby horto » Tue Apr 21, 2009 3:24 pm

hi

try increasing the JVM heap size -- set to 256mb, or 512. That should be plenty. As per http://www.informix-zone.com/node/46

e.g. when starting tomcat:
export CATALINA_OPTS="-Xmx512m"
$CATALINA_HOME/bin/startup.sh

not sure why this is required in your case but i've seen other memory-hungry j2ee apps fail on tomcat with the same error.

note: i don't think subsonic is memory-hungry, but maybe it is if you have a huge library. shrug. good luck!
horto
 
Posts: 3
Joined: Tue Apr 21, 2009 3:16 pm

Postby horto » Tue Apr 21, 2009 3:28 pm

i spoke too soon

check the subsonic war deployment requirements - it clearly states it requires a container that supports 2.4 servlets (as per http://subsonic.sourceforge.net/installation.php)

if you look at the tomcat homepage, you see that starting with 5.5.27 it supports that:
2.4/2.0 5.5.27
(as per http://tomcat.apache.org/

so that is probably why it's not working on an older version of tomcat.

peace out
-horto
horto
 
Posts: 3
Joined: Tue Apr 21, 2009 3:16 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 16 guests