How to make sure that Tomcat6 reads CATALINA_OPTS on Windows?

后端 未结 4 1126
被撕碎了的回忆
被撕碎了的回忆 2021-02-03 14:48

I have a Tomcat6 running on a Windows2003 machine. I deployed 2 Grails apps on this server and I soon noticed that everything was crashing sometime after the deploy with a class

4条回答
  •  梦毁少年i
    2021-02-03 15:22

    Thank you all! I finally solved the issue by adding:

    -XX:+CMSClassUnloadingEnabled
    -XX:+CMSPermGenSweepingEnabled
    -XX:+UseConcMarkSweepGC
    -XX:PermSize=128m
    -XX:MaxPermSize=512m 
    

    To the java options on tomcat6w.exe.

    Thanks!

提交回复
热议问题