在Tomcat中添加JVM选项 [英] Add JVM options in Tomcat

查看:348
本文介绍了在Tomcat中添加JVM选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Apache Tomcat 6中添加jvm(Java虚拟机)选项?

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

tomcat中是否有管理控制台?我尝试了 http://localhost:8080/admin ,但是我什么都没得到.

Is there a administration console in tomcat? I tried http://localhost:8080/admin but I could not get anything out of it.

我要添加以下jvm选项:

I want to add the following jvm options:

-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

推荐答案

正如Bhavik Shah所说,您可以在JAVA_OPTS中完成此操作,但是建议的方式(根据catalina.sh)是使用CATALINA_OPTS:

As Bhavik Shah says, you can do it in JAVA_OPTS, but the recommended way (as per catalina.sh) is to use 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.

这篇关于在Tomcat中添加JVM选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆