I think it's more likely that you've just tipped over the edge of the 64MB limit in which case changing it to 128MB will fix the problem. I've had this before with apps using stuff like hibernate that generates a lot of proxy classes. Think around 300 hibernate classes I ran into this and had to up the maximum.
I would turn on the GC logging and watch the perm gen size. If it settles down after startup + some activity you should be fine. If it continues to grow over time and you get the OOM again then Mark is correct and you have a leak somewhere. Cheers. Mike. -----Original Message----- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: 16 February 2007 13:34 To: Tomcat Users List Subject: Re: PermGen space Jost Richstein wrote: > Use for example -XX:MaxPermSize=128m as a parameter to the VM to > extend the PermSize. Default is 64m. This will delay the time to the OOM error but it won't fix it. What you really need to do is get hold of a profiler and find out what memory is leaking memory where. It might be Tomcat but is more likely to be your application. Mark > Michal Glowacki schrieb: >> Hi >> >> After upgrading to Tomcat 5.5.20 (in jboss 4.0.5ga) I keep getting >> OutOfMemoryException: PermGen space every hour (more or less) during >> deployment. I can't solve this problem, I had changed GC interval >> from 1 hours to 15mins, but didn't help. JVM Memory settings are as follows: >> >> JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m JAVA_OPTS=%JAVA_OPTS% >> -Dsun.rmi.dgc.client.gcInterval=900000 >> -Dsun.rmi.dgc.server.gcInterval=900000 >> JAVA_OPTS=-Xdebug >> -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y >> %JAVA_OPTS% >> >> Can anyone help? It's little bit annoying during development, when I >> have to restart server every XX minutes. >> >> Regards, >> Michal >> >> PS. Sorry if it's not Tomcat but Jboss issue, still learning... >> >> >> --------------------------------------------------------------------- >> To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, >> e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail is bound by the terms and conditions described at http://www.subexazure.com/mail-disclaimer.html --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]