- If you run Apache as front-end, use
mod_jk
. Its performance is much better thanmod_proxy
. - If you serve HTTP directly or use mod_proxy, use the NIO connector in Tomcat 6.
- Make sure your thread pool (maxThreads) is large enough, default is only 200.
- Make Tomcat state-less. Especially, don't use HttpSession. The state may cause memory leak in the app and degrade the performance gradually. Push all your state to database or client (cookies).
- Do use Database pooling (DBCP). We have MySQL, the JDBC driver is very chatty.
- If you run one instance of JMeter, it may become the bottleneck. Run multiple slaves from different networks to simulate real production load.
- stead of `commons-dbcp`, better use `tomcat-jdbc`. DBCP is namely singlethreaded.
Friday, September 10, 2010
Tips on Fine Tuning Apache 2.2 for high performance
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment