HP (Hewlett-Packard) 5992-4859 Server User Manual


 
Figure 1 Tomcat Successful Installation Verification
NOTE: If the iptables firewall is enabled in the system, the Tomcat server can not be
accessed from other machines.
4. If necessary, stop Tomcat by entering the following command:
# /usr/local/apache-tomcat/bin/shutdown.sh
The following messages display:
Using CATALINA_BASE: /usr/local/apache-tomcat
Using CATALINA_HOME: /usr/local/apache-tomcat
Using CATALINA_TMPDIR: /usr/local/apache-tomcat/temp
Using JRE_HOME: /usr/local/jdk
Tomcat Configuration
Setting JVM Options for Tomcat
Edit the /usr/local/apache-tomcat/bin/catalina.sh file and add the JVM options to
the JAVA_OPTS environment variable. Table 2 lists the JVM options that need to be added to the
catalina.sh configuration file.
Table 2 JVM Configuration
DescriptionValueJVM Option
The maximum Java heap size.4g-Xmx
The initial Java heap size.4g-Xms
The size of young generation.1g-Xmn
To use parallel garbage collection for scavenges.-XX:+UseParallelGC
The initial size of permanent generation.50m-XX:PermSize
Tomcat Configuration 13