Tomcat OutOfMemory Error: PermGen Space

This FAQ applies to: 5.1

Using the Clien t Managemen t service wi th the da tabase sys tem eXis t Tomca t occasionally throws a Ou tOfMemory Error: PermGen Space.

To fix this the Tomcat Administrator has to change the JAVA_OPTS variable in the catalina start up script to the following

JAVA_OPTS="-server -Xms128M -Xmx256M -XX:MaxPermSize=256M"

If you are running tomcat as a Windows Service then you need to right click on the Apache Tomcat System Tray icon and click "Configure"

Click on the Java tab, and in the Java options box add the line -Xms128M -Xmx256M -XX:MaxPermSize=256M

你可能感兴趣的:(java,apache,tomcat,windows,UP)