Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add a permalink. Fix formatting and links. + Drop links to benchmark results articles. Those were 10+ years old.

Permalink to this page: https://cwiki.apache.org/confluence/x/oColBg

Preface

This is about Tomcat performance.

Other (non-exhaustive) notes:

  • Stress test your webapp. You can do this via JMeter, siege, flood, and other tools. Google is your friend.
  • Tweak your UNIX box! Look at ulimit and kernel parameters.
  • Bad design will hurt performance.
  • Look at JProbe, or OptimizeIt, or New Relic, or other profiling tools . Lots of people recommend these tools. This is not an endorsement for them, I just notice other people like themfor Java.

Questions

  1. Is Tomcat faster than serving static HTML pages than Apache httpd?Is there an application-specific comparison between Tomcat and Resin or other containers?
  2. Is there a comprehensive, up-to-date, detailed benchmark comparing various servlet containers, including Tomcat?
  3. How do I configure apache tomcat connectors for a heavy load site?
  4. How do I make Tomcat start up faster?

Answers

Anchor
Q1
Q1
Is Tomcat faster than serving static HTML pages than Apache httpd?

Yes depending on how you tune it. And NO depending on how you tune it. Anything less starts a religious war. We recommend performing your own benchmarks and see for yourself. AnchorQ2Q2Is there an application-specific comparison between Tomcat and Resin or other containers?

Here's one comparing recent versions of Resin and Tomcat running AppFuse.

AnchorQ3Q3Is there a comprehensive, up-to-date, detailed benchmark comparing various servlet containers, including Tomcat?Yes. Here's the most comprehensive and objective one we've found to date: Web Performance, Inc.'s comparison.

Anchor
Q4
Q4
How do I configure apache tomcat connectors for a heavy load site?

The following excellent article was written by Mladen Turk. He is a Developer and Consultant for JBoss Inc in Europe, where he is responsible for native integration. He is a long time commiter for Jakarta Tomcat Connectors, Apache Httpd and Apache Portable Runtime projects.

Fronting Tomcat with Apache or IIS - Best Practices

Anchor
Q5
Q5
How do I make Tomcat start up faster?

See HowTo FasterStartUp