Are you restarting tomcat through the tomcat webapp or the command line?
From what I understand, restarting tomcat through the webapp does not
clear out loaded classes like it should so eventually it can lead to a PermGen error. I would recommend starting and stopping the service directly without the tomcat webpage. Also, this error can happen if there is a dynamic class loader that is going haywire.

Tammy Dugan

On 8/17/2011 2:49 PM, Friedman, Roger (CDC/CGH/DGHA) (CTR) wrote:

Folks --
I keep getting PermGen space errors when invoking openmrs (i.e., it has been deployed, now I'm going to the login screen). I have tried various values of JAVA_OPTS, increasing from -Xms256m -Xmx256m -XX:PermSize=1024m -XX:MaxPermSize=1024m, in units of 512m/1024m. The strange thing is that Windows Task Manager does not show any change in the "Commit Charge", it still peaks at 1630m of 3985m max, and my physical memory doesn't go above 1291m of 2047m. Tomcat logs (for 256m/1024m) attached. I have done the Tomcat memory leak fix.

     Any ideas?

Also, if anyone has any ideas about getting rid of leftover sessions which didn't terminate properly due to lack of permgen space and have made Tomcat unstoppable except by reboot, please let me know. They are damnably persistent, deleting all the work and webapp subdirectories didn't work. I've had to go so far as to uninstall /reinstall Tomcat to get rid of them.

Thanks, Roger


--
Tammy Dugan
CHIRDL Technical Lead
Children's Health Services Research
IU School of Medicine


_________________________________________

To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to 
[email protected] with "SIGNOFF openmrs-devel-l" in the  body (not 
the subject) of your e-mail.

[mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

Reply via email to