Tomcat configuration

From Oxxus Wiki

Jump to: navigation, search

Depending on which Tomcat version you installed, configuration files can be one in /var/tomcatX where X represents the version number.

You will find the server.xml file in /var/tomcatX/conf/.

You can configure various JVM options inside /var/tomcatX/bin/catalina.sh.

Java heap size

You can adjust Java heap size by changing JAVA_OPTS in catalina.sh file which is used to start the Tomcat service.

Be sure to include the m after the value.

-Xms
This option specifies the minimum heap size, it should be kept small
Default value: 16m
-Xmx
This option specifies the maximum heap size, it should be large enough to support your application needs
-XX:MaxPermSize
This is the amount of memory that is permanently allocated to tomcat for stuff that doesn't change often such as Java classes
Default value: 64m

Have in mind the amount of memory available to your VPS as the total amount of memory used by Tomcat will be MaxPermSize + Xmx

>> configuring tomcat virtual hosts

External links

Contact About Us Support Network Servers Java Hosting Oxxus.net Order Now! Dedicated Servers VPS Hosting Tomcat Hosting Java Hosting Money Back Guarantee Privacy Policy Oxxus.net Terms of 
Service Contact About Us Servers Networks Support Domain Names SSL Certificates Java Wiki Tutorials E-learning 
Platforms