开发者

Tomcat 6 performance tuning

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 so开发者_如何学运维me 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.


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.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜