I'm on Windows and am using the Control Panel>>Services to start/stop/try to 
stop Tomcat.  I did it once through the command line version (cat in the hat? 
striped trumpet? icon).


From: Tammy Dugan [mailto:[email protected]]
Sent: Wednesday, August 17, 2011 3:01 PM
To: [email protected]
Cc: Friedman, Roger (CDC/CGH/DGHA) (CTR); [email protected]
Subject: Re: [OPENMRS-DEV] Out of Memory error

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

Reply via email to