Hi,
The first step is to optimize your own app.  Create stress tests using
whatever tool you like, run them, record the results.  Profile your app
to find bottlenecks and fix them.  I'm including JVM (garbage
collection, heap size, etc.) tuning in this step.  One all that's done,
you start tuning specific to your server:

In tomcat, you could:
- Eliminate all unneeded webapps (docs, examples, webdav, etc.)
- Eliminate all unneeded connectors (comment them out in server.xml)
- Eliminate all unneeded contexts (comment them out in server.xml)
- If you have many simultaneous requests, tune the acceptCount,
minProcessors, and maxProcessors for your connector.
- Turn off reloading (set reloadable="false") for your context in
web.xml.
- Pre-compile JSPs if you're using JSPs
- Turn off unnecessary logging in tomcat (keep a logger only for your
context, maybe), make sure all the debug levels in server.xml and the
$CATALINA_HOME/conf/web.xml files are set to 0.
- If you have a lot of traffic, consider load-balancing a cluster of
tomcat servers...

Some of the above will make very little difference in actual
performance.  Tomcat is really not bad in its default configuration.
It's usually your app that needs tuning.  

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Johnson, Garrett [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, December 11, 2002 12:54 PM
>To: 'Tomcat Users List'
>Subject: Config changes for speed?
>
>When running Tomcat 4.1 from essentially the default Win2K binary
install,
>what configuration settings should be changed if I've finished
debugging
>and
>testing, and just want the app. to go as fast as possible?  I'm only
>concerned with speed, I've got the app set up at this point...
>
>This is really 2 questions:
>
>1.  What lines in server.xml, (possibly web.xml as well?) do I need to
>either add or comment out?
>
>2.  What do these lines _do_?
>
>Thanks in advance :)
>
>--
>To unsubscribe, e-mail:   <mailto:tomcat-user-
>[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:tomcat-user-
>[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to