Archive for May, 2008

Apache Tomcat 6.0 configuration for developers

Thursday, May 1st, 2008

Just a quick blog on configuring some specific Tomcat 6.0 settings:

Memory Heap Size on a unix based system

Open the file %tomcat_install_folder%/bin/startup.sh

Add the line:

export CATALINA_OPTS="-Xms256m -Xmx512m"

before the line:

exec "$PRGDIR"/"$EXECUTABLE" start "$@"

to have a memory heap of at least 256mb and max of 512mb.

Memory Heap Size on a Windows based system

On a windows platform you have to set a environment variable called “CATALINA_OPTS”, with the value:

-ms128m -mx256m

You can this by right clicking the icon of your “My Computer” and then choosing properties. Under “System” I think you will then find the environment variable editor. Just add it there.

Activating servlet reloading

Open the file %tomcat_install_folder%/conf/context.xml

Change the element tag “Context” from so:

<Context>

to so:

<Context reloadable="true" privileged="true">

have fun coding webapps
eitch