简体   繁体   中英

PermGen Space Issue

Environment: Windows Server 2003 x86 Intel Xeon 2.3 4gb Ram | tomcat 7.0.27 | jdk 1.7.0.25

I am facing the OutOfMemoryError. SO suggests using java options to increase the permgen space using following options

-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms1536m -Xmx1536m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+DisableExplicitGC

However tomcat status page still shows the permgen memory as 64MB. Why cant it pick up the value specified in the parameters?

There is no PermGen in the status page, see this http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Introduction .

Anyways you conf seems OK

Since PermGen is a java thing (not tomcat) you should use java tools to check it, take a look at this .

As your settings seem ok, check the way you apply them: If you start tomcat via batch file, create setenv.bat with the content

  CATALINA_OPTS="-Dyour-settings-from-above ... all of them"

If you start a service, you'll need to update the service configuration - as I'm not on Windows, it's a long time since I did that. Did you use the tomcatw.exe to create/configure the service? Not sure...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM