1

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

Tomasz Nurkiewicz
  • 334,321
  • 69
  • 703
  • 674
gis_wild
  • 464
  • 8
  • 24

2 Answers2

2

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!

gis_wild
  • 464
  • 8
  • 24
1

Did you edit SET "JAVA_OPTS=-Xms1024m -Xmx2048m" line in bin/catalina.bat?

chrome
  • 661
  • 2
  • 7
  • 23
  • yep. But if I allocate more than 1024 tomcat simply doesn`t start. – gis_wild Oct 19 '12 at 22:55
  • definately make sure that the jvm installation is 64 bit, though it should probably still work up to 2G of memory on a 32 bit jvm. – Matt Oct 20 '12 at 02:17
  • 1
    detailed description here: [link](http://stackoverflow.com/questions/286007/how-to-tune-tomcat-5-5-jvm-memory-settings-without-using-the-configuration-progr) – chrome Oct 20 '12 at 07:16
  • 1
    My system is slackware and configuration of bin/setenv.sh is: JAVA_OPTS="-server -XX:MaxPermSize=512M -Xms2048M -Xmx2048M -Xss64M -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled" – chrome Oct 20 '12 at 07:18