简体   繁体   English

如何从命令行获取 tomcat JAVA_OPTS?

[英]how to get tomcat JAVA_OPTS from command line?

I have a tomcat 6 running on windows 7. I have recently increased permSize, maxSize etc in catalina.sh file and I want to see if tomcat get the new options correctly, how can I see tomcat JAVA_OPTS from command line?我有一个在 windows 7 上运行的 tomcat 6。我最近在 catalina.sh 文件中增加了 permSize、maxSize 等,我想看看 tomcat 是否正确获得了新选项,如何从命令行查看 tomcat JAVA_OPTS?

Thanks..谢谢..

To see your environment settings for Tomcat, run the following from the bin folder of your CATALINA_HOME.要查看 Tomcat 的环境设置,请从 CATALINA_HOME 的 bin 文件夹运行以下命令。

catalina version

If everything is fine, you will see something similar:如果一切正常,您将看到类似的内容:

D:\apache-tomcat-7.0\bin>catalina version
Using CATALINA_BASE:   "D:\apache-tomcat-7.0"
Using CATALINA_HOME:   "D:\apache-tomcat-7.0"
Using CATALINA_TMPDIR: "D:\apache-tomcat-7.0\temp"
Using JRE_HOME:        "c:\Java\jdk1.7.0_25\jre\"
Using CLASSPATH:       "D:\apache-tomcat-7.0\bin\bootstrap.jar;D:\apache-tomcat-
7.0\bin\tomcat-juli.jar"
Server version: Apache Tomcat/7.0.41
Server built:   Jun 6 2013 11:16:08
Server number:  7.0.41.0
OS Name:        Windows 7
OS Version:     6.1
Architecture:   amd64
JVM Version:    1.7.0_25-b17
JVM Vendor:     Oracle Corporation

文件 catalina.sh 旨在用于 Unix 环境,请改用 catalina.bat。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM