简体   繁体   中英

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?

Thanks..

To see your environment settings for Tomcat, run the following from the bin folder of your CATALINA_HOME.

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。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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