Community » Forums » Tomcat - General > Tomcat vs. Apache static file performance?
October 10, 2007 9:13:36 PM PDT (2 years ago). Seen 5,985 times.
Photo Aleksandar Gargenta
Partner
Marakana, Inc.
Member since Jan 19, 2007
Location: San Francisco
Posts: 72
Is anyone aware of any recent benchmarks comparing Tomcat and Apache web server when it comes to the performance of serving static files?

We all know that there are many advantages of fronting Tomcat by Apache on high traffic sites, but are modern versions of Tomcat (5.5 with/out APR or 6.0 with/out APR/Comet-NIO) able to match Apache's ability to serve static files under high load?

Does anyone have any first-hand experiences with this?

Edited one time. Last edit by Aleksandar Gargenta on Jun 14, 2010 at 11:57:35 PM (about 5 weeks ago).
November 24, 2007 11:58:55 AM PST (2 years ago)
Photo Jason Brittain
Member since Nov 24, 2007
Location: Dublin
Posts: 1
Hi Aleksandar.

Yes. I spent quite a bit of time benchmarking the static file performance of Tomcat versus Apache httpd, and just last month published the findings in the new O'Reilly Tomcat book. The results of the benchmarks are so interesting that I pursuaded O'Reilly to publish the benchmarks as the book's sample chapter, which you can find here:

http://www.oreilly.com/catalog/9780596101060/chapter/index.html

Not only is Tomcat able to match Apache httpd's performance in all cases that I benchmarked, but it turns out that Tomcat is usually significantly faster.
November 25, 2007 10:56:06 PM PST (2 years ago)
Photo Aleksandar Gargenta
Partner
Marakana, Inc.
Member since Jan 19, 2007
Location: San Francisco
Posts: 72
That's exactly what I was looking for! The results are really surprising!

I guess the only thing missing (in my mind) is the difference between Apache httpd and Tomcat when serving large files (e.g. over 48KB, or even larger).

Anyway, I'm planning to do some benchmarking myself. I'll let you know how it goes!
Edited one time. Last edit by Aleksandar Gargenta on Feb 6, 2008 at 5:16:11 PM (about 5 weeks ago).