tags:

views:

43

answers:

1

Hi All,

I am planning on using Apache Tomcat 6.0 as web server in my web application. I have written my apps that it calls some ajax request/http request alternately.

Can you share with me some tutorials on what items can I do to enhance the performance of my Tomcat when I release my web application to the users?

I am hoping Tomcat can support my web application which I think has so many ajax request running at the background. Thanks.

A: 

Grab a copy of Professional Apache Tomcat 6 from Wrox. It's a decent book that'll introduce you to administrating a Tomcat Server, including performance ideas.

Here's a few to start with:

  1. Enable APR libraries-Windows: put the tcNative.dll into your catalina path. Linux-Usually already has this, but you can build from source if needed. Configure your server.xml if neccessary. That's it.
  2. Set up connection pooling-Rather than get a new connection every time, have Tomcat manage your connection pooling.
  3. Turn on compression/caching-It'd be better to do this with an Apache frontend, but if you are serving directly from tomcat, this'll cut down on response size, # of requests, etc.
ClutchDude