Añadir opciones JVM en Tomcat
¿Cómo puedo añadir opciones jvm(Java virtual machine) en Apache Tomcat 6?
¿Existe una consola de administración en tomcat? He probado http://localhost:8080/admin pero no he conseguido nada.
Quiero añadir las siguientes opciones jvm:
-agentpath:C:\calltracer\jvmti\calltracer5.dll=traceFile-C:\calltracer\call.trace,filterFile-C:\calltracer\filters.txt,outputType-xml,usage-uncontrolled -Djava.library.path=C:\calltracer\jvmti -Dcalltracerlib=calltracer5
34
3
Como dice Bhavik Shah, puedes hacerlo en JAVA_OPTS, pero la forma recomendada (según catalina.sh) es usar CATALINA_OPTS:
Ponlo en la variable
JAVA_OPTS
en [ruta a tomcat]/bin/catalina.sh. Bajo windows hay una consola donde puedes configurarlo o usas el catalina.bat.Para ello, debe ejecutar la aplicación "tomcat6w" que forma parte de la distribución estándar de Tomcat en el directorio "bin". Por ejemplo, para Windows, el directorio por defecto es "C:Archivos de programa "Apache Software Foundation "Tomcat 6.0\bin\tomcat6w.exe". La aplicación "tomcat6w" inicia una GUI. Si selecciona la pestaña "Java" puede introducir todas las opciones de Java.
También es posible pasar opciones JVM a través de la línea de comandos a tomcat. Para ello es necesario utilizar el comando
donde "tomcatexecutable" se refiere a su aplicación tomcat, "tomcatservicename" es el nombre del servicio tomcat que está utilizando y "JVMoptions" son sus opciones JVM. Por ejemplo: