Search code examples
javatomcatmemory-managementpermgen

How can I allocate more than 1 gb memory to tomcat on x64 windows7


Tomcat simply can`t start if I allocate more than 1 Gb memory, althoug I have 6 Gb free RAM space on the server.

Give me please any advice. I have tomcat 6.0.35, grails 2.0.1, jdk 1.6.0_35


Solution

  • Now i have JAVA_OPTS="-server -XX:MaxPermSize=512M -Xms2048M -Xmx2048M -Xss64M -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled" in catalina.bat (suggested by chrome). It seems that all works fine. In the prev conf i had only -Xms2048M -Xmx2048M options.

    Than you guys for the help!