Tomcat Configuration Notes
Edit the file catalina.sh and modify for optimal jvm tunable
parameters.
Please refer to "General Java Tuning" for generic jvm tuning
for UltraSPARC T1.
Java and Options that should make a difference
- Make sure that Tomcat uses JDK 1.5.0_06
- Make sure to turn on the gc-log -Xloggc:/tmp/gc.log
- Make sure these jvm parameters are present
- XX:-BindGCTaskThreadsToCPUs
- XX:ParallelGCThreads=4 (often 2 is good)
- For a reasonable load with about 300 connections, set the Connector
parameters for the port from where the req. comes to something similar
to this.
<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
The rest of the server.xml does not matter that much.
During runtime, watch the file /tmp/gc.log for "Full" GC activity.
If there are frequent "Full" GC happening, you would need to tune
the Java-Max-Heap-Size Parameter - -Xmx - A good starting value is
1024m
Make sure that the -Xms parameter is set to the same value as -Xmx
More help with Tomcat