How do I increase memory on Tomcat 7 when running as a Windows Service?

前端 未结 6 2211
無奈伤痛
無奈伤痛 2020-12-01 05:09

I am trying to run Tomcat 7 as a Windows Service (XP and Windows 7).

I see places to set the -Xmx and -Xms jvm args in catalina.bat, but I\'m not sure how to do it w

6条回答
  •  再見小時候
    2020-12-01 05:42

    For Tomcat 7 to increase memory :

    Identify your service name, you will find it in the service properties, under the "Path to executable" at the end of the line

    For me it is //RS//Tomcat70 so the name is Tomcat70

    Then write as administrator :

    tomcat7.exe //US//Tomcat70 --JvmOptions=-Xmx1024M
    

提交回复
热议问题