Add JVM options in Tomcat

后端 未结 6 499
失恋的感觉
失恋的感觉 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 19:04

    if you want to set jvm args on eclipse you can use below:

    see below two links to accomplish it:

    1. eclipse setting to pass jvm args to java
    2. eclipse setting to pass jvm args to java and adding to run config on eclipse

    And for Tomcat you can create a setenv.bat file in bin folder of Tomcat and add below lines to it :

    echo "hello im starting setenv"
    set CATALINA_OPTS=-DNLP.home=${NLP.home} -Dhostname=${hostname}
    

提交回复
热议问题