Hi, Great stuff, thanks for posting. Now if we could only get people to search the archives before posting questions ;)
Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: Walter Truitt [mailto:[EMAIL PROTECTED] >Sent: Wednesday, March 31, 2004 3:24 PM >To: [EMAIL PROTECTED]; [EMAIL PROTECTED] >Subject: Re: tomcat5/tomcat4 comparison > >Posting my findings for Redhat Linux 7.3 on a Intel Zeon 2.4 with a GB >of ram. My kernel is not SMP even though the Zeon has hyperthreading. >I also ran ab on the same machine as apache and tomcat. > >I was interested in seeing the WARP connector maintained, so I also >include those numbers in my tests. I find that WARP works with both >Apache 1.3.29 and 2.0.49. It does not however work with tomcat 5. > >I also found that it does not have the performance of the jk2 >connector. This was told to me, but I didn't believe it until I >tested it myself. I found that the warp connector was removed from >tomcat 5, and I did not work on porting it. > >+--------------------------------------------------+ >| Tomcat | Apache | Connector | Mean | >| Version | Version | | Connection | >+==================================================+ >| 4.1.30 | 1.3.29 | webapp | 73.81 | >| +---------------------------------------+ >| | 2.0.49 | webapp | 74.19 | >| | +---------------------------+ >| | | jk2(ajp) | 40.16 | >| | +---------------------------+ >| | | jk2(coyote) | 29.31 | >| +---------------------------------------+ >| | none | http(coyote) | 18.98 | >+--------------------------------------------------+ >| 5.0.19 | 2.0.49 | jk2 | 27.35 | >| +---------------------------------------+ >| | none | http(coyote) | 18.76 | >+--------------------------------------------------+ > >All my tests were using the HelloWorldExample servlet. I did not >perform any static page tests. > >The example servlet changed URLs between 4.1 and 5.0 tomcat versions. >I used the ab version from my 1.3.29 apache. I don't know if there >were any changes between it and the one in 2.0.49. > >Tomcat 4.1.30 >------------- >ab -n 10000 -c 30 http://www/examples/servlet/HelloWorldExample > >Tomcat 5.0.19 >------------- >ab -n 10000 -c 30 http://www/servlets-examples/servlet/HelloWorldExample > >These numbers did not match my expectations, but then I am not >familiar with the code in each module. It shows that using the Http >Connector is faster than going through apache for the dynamic content. >I would expect dynamic content to be the reverse, so consider what >percentage of your pages/images are dynamic when choosing which to use. > >As a side note, I believe that since webapp works with 2.0.49, it does >support threads. Because it doesn't have the performance of jk2, I >won't be trying to get it out of deprication. > >I know that my tests don't compare directly to the other post, and it >doesn't look like there is as much of a change in performance as the >other tests showed between versions. The HelloWorldExample servlet >was 1.2% faster using 5.0.19 compared to 4.1.30 with the HTTP >Connector. It was 7.2% faster when comparing 5.0.19 and 4.1.30 using >the jk2 Connector. > >jk2 4.1.30 100.0 % >http 4.1.30 154.4 % >jk2 5.0.19 107.2 % >http 5.0.19 156.2 % > > -walter > >Apache 1.3.29/Tomcat 4.1.30/mod_webapp 1.20 > >Total transferred: 5442176 bytes >HTML transferred: 3931572 bytes >Requests per second: 406.47 [#/sec] (mean) >Time per request: 73.81 [ms] (mean) >Time per request: 2.46 [ms] (mean, across all concurrent requests) >Transfer rate: 221.21 [Kbytes/sec] received > >Apache 2.0.49/Tomcat 4.1.30/mod_webapp 1.20 > >Total transferred: 5641692 bytes >HTML transferred: 3931179 bytes >Requests per second: 404.38 [#/sec] (mean) >Time per request: 74.19 [ms] (mean) >Time per request: 2.47 [ms] (mean, across all concurrent requests) >Transfer rate: 228.14 [Kbytes/sec] received > >Apache 2.0.49/Tomcat 4.1.30/jk2 2.04(org.apache.ajp.tomcat4.Ajp13Connector) > >Total transferred: 5575013 bytes >HTML transferred: 3933537 bytes >Requests per second: 746.99 [#/sec] (mean) >Time per request: 40.16 [ms] (mean) >Time per request: 1.34 [ms] (mean, across all concurrent requests) >Transfer rate: 416.45 [Kbytes/sec] received > >Apache 2.0.49/Tomcat 4.1.30/jk2 >2.04(org.apache.coyote.tomcat4.CoyoteConnector) > >Total transferred: 5910030 bytes >HTML transferred: 4056885 bytes >Requests per second: 1023.44 [#/sec] (mean) >Time per request: 29.31 [ms] (mean) >Time per request: 0.98 [ms] (mean, across all concurrent requests) >Transfer rate: 604.85 [Kbytes/sec] received > >Tomcat 4.1.30/Coyote Http > >Total transferred: 5541060 bytes >HTML transferred: 4058100 bytes >Requests per second: 1581.03 [#/sec] (mean) >Time per request: 18.98 [ms] (mean) >Time per request: 0.63 [ms] (mean, across all concurrent requests) >Transfer rate: 876.06 [Kbytes/sec] received > >Tomcat 5.0.14/Coyote Http > >Total transferred: 5273150 bytes >HTML transferred: 3598975 bytes >Requests per second: 1599.49 [#/sec] (mean) >Time per request: 18.76 [ms] (mean) >Time per request: 0.63 [ms] (mean, across all concurrent requests) >Transfer rate: 843.43 [Kbytes/sec] received > >Apache 2.0.49/Tomcat 5.0.14/jk2 2.04 > >Total transferred: 5440317 bytes >HTML transferred: 3596821 bytes >Requests per second: 1096.97 [#/sec] (mean) >Time per request: 27.35 [ms] (mean) >Time per request: 0.91 [ms] (mean, across all concurrent requests) >Transfer rate: 596.79 [Kbytes/sec] received > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
