Tomcat

From Guides

Jump to: navigation, search

Contents

Manager

To enable the manager you need to create or modify a user and add the manager role to it. The file you need to edit is: TOMCAT_HOME/conf/tomcat-users.xml

Memory Settings

You might want to start Tomcat with a little bit more memory. Add the following lines to where your tomcat gets started.

-Xms32M -Xmx256M

This sets the start memory to 32M and the maximum memory to 256M I found this variable in the tomcat startup script and added the parameters.

CATALINA_OPTS="-Djava.awt.headless=true -Xms32M -Xmx256M -server"

You could also add the catalina_opts variable to your environment variables and adapt the settings there.

Classpaths

  • Linux

I added the following lines to my /etc/profile file.

JAVA_HOME="/opt/java_home"
CLASSPATH="/usr/share/tomcat5/common/lib"
PATH="$JAVA_HOME/bin:$PATH"
export PATH JAVA_HOME CLASSPATH
Personal tools
Google Ads