Hi Roger, Probably a late reply, but will be useful for someone else who has this issue of setting PermSize on Windows when starting Tomcat through the service: http://www.smartsoftwarebits.com/qaa/46-misc/81-howto-set-java-options-for-tomcat-on-windows
When installing a service in windows (using the service.bat install command), the --JvmMx, --JvmMs, --JvmSs etc. can be used as shown here: http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html --- Regards, Saptarshi PURKAYASTHA My Tech Blog: http://sunnytalkstech.blogspot.com You Live by CHOICE, Not by CHANCE On 18 August 2011 00:45, Friedman, Roger (CDC/CGH/DGHA) (CTR) <[email protected]>wrote: > 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**** > > _________________________________________ 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]

