We are currently trying to get a Tomcat 6.0 server running, with Sun JDK 16.0_10. OS is Windows 2003. This Tomcat server will hold about 20 contexts, each ranging from 50-100Mb (mostly libs + jsps). Quite large, so it needs some memory adjustments.
If we don't, we get the following exception: java.lang.OutOfMemoryError: PermGen space (+ a backtrace ofc). AFAIK the PermSpace holds all compiled java classes (and jsps) in RAM. So we need about 1024Mb at least for the PermSpace I think, probably even more. Available RAM is 3.5Gb on the machine, so that's not a problem. What we've tried is the following settings: -Xms256m -Xmx1536m -XX:MaxPermSize=1024m -XX:+CMSPermGenSweepingEnabled This results in the following startup failure: [2009-05-27 16:04:07] [395 javajni.c] [error] CreateJavaVM Failed [2009-05-27 16:04:07] [992 prunsrv.c] [error] Failed initializing java d:\Tomcat 6.0\bin\bootstrap.jar [2009-05-27 16:04:07] [1260 prunsrv.c] [error] ServiceStart returned 2 With a MaxPermSize of 512Mb the Tomcat does start (but it's not large enough for all contexts). Any ideas how we can get a much larger PermSpace going? -- View this message in context: http://www.nabble.com/MaxPermSize%2C-Tomcat-startup-trouble-tp23744089p23744089.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org