Add JVM options in Tomcat

后端 未结 6 488
失恋的感觉
失恋的感觉 2020-11-27 18:40

How can I add jvm(Java virtual machine) options in Apache Tomcat 6?

Is there a administration console in tomcat? I tried http://localhost:8080/admin but I could not

6条回答
  •  迷失自我
    2020-11-27 18:46

    For this you need to run the "tomcat6w" application that is part of the standard Tomcat distribution in the "bin" directory. E.g. for windows the default is "C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin\tomcat6w.exe". The "tomcat6w" application starts a GUI. If you select the "Java" tab you can enter all Java options.

    It is also possible to pass JVM options via the command line to tomcat. For this you need to use the command:

     //US// ++JvmOptions=""
    

    where "tomcatexecutable" refers to your tomcat application, "tomcatservicename" is the tomcat service name you are using and "JVMoptions" are your JVM options. For instance:

    "tomcat6.exe" //US//tomcat6 ++JvmOptions="-XX:MaxPermSize=128m" 
    

提交回复
热议问题