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

Como dice Bhavik Shah, puedes hacerlo en JAVA_OPTS, pero la forma recomendada (según catalina.sh) es usar CATALINA_OPTS:

#   CATALINA_OPTS   (Optional) Java runtime options used when the "start",
#                   "run" or "debug" command is executed.
#                   Include here and not in JAVA_OPTS all options, that should
#                   only be used by Tomcat itself, not by the stop process,
#                   the version command etc.
#                   Examples are heap size, GC logging, JMX ports etc.

#   JAVA_OPTS       (Optional) Java runtime options used when any command
#                   is executed.
#                   Include here and not in CATALINA_OPTS all options, that
#                   should be used by Tomcat and also by the stop process,
#                   the version command etc.
#                   Most options should go into CATALINA_OPTS.
Comentarios (0)

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.

JAVA_OPTS=-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
Comentarios (2)

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 &quotApache Software Foundation &quotTomcat 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

 //US// ++JvmOptions=""

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:

"tomcat6.exe" //US//tomcat6 ++JvmOptions="-XX:MaxPermSize=128m" 
Comentarios (1)