Maximizing Servlet Performance

Consider the following guidelines for improving servlet performance:

Increase the Java heap size to help garbage collection. The
Java heap size can be adjusted by adjusting the values specified to the —Xms and —Xmxjvm- options in server.xml. For example, <jvm-options>-Xms128m-Xmx256m</jvm-options> sets the minimum Java heap size to 128 MB and 256 MB. For more
information, see Sun Java
System Web Server 7.0 Update 6 Administrator’s Guide.

Use precompiled
JSPs if the JSPs do not change after deployment to the Web Server. The precompiled
JSPs should include the reload-interval property setting
in the jsp-config element in sun-web.xml.
This eliminates time-consuming compilation and periodic checking by the Web
Server.