You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Zufeng Huang <po...@yahoo.com> on 2008/06/06 04:22:56 UTC
[users@httpd] It's amazing, apache make Tomcat performance decrease dramatically.
Hi, all
apache2.2.4+mod_jk+tomcat5.5.15
I tried apache ab as the tool to do a benchmark. But the result is amazing.
Test steps:
1, Using a jsp as the target ONE.
1.1, ab ¨Cn 25000 ¨Cc 1000 URL_via_apache
Concurrency Level: 1000
Time taken for tests: 410.105255 seconds
Complete requests: 25000
1.2,ab ¨Cn 25000 ¨Cc 1000 URL_direct_to_tomcat
Concurrency Level: 1000
Time taken for tests: 12.297322 seconds
Complete requests: 25000
2, Using a html page as the target TWO.
2.1, ab ¨Cn 25000 ¨Cc 1000 URL_via_apache
Concurrency Level: 1000
Time taken for tests: 25.655253 seconds
Complete requests: 25000
2.2, ab ¨Cn 25000 ¨Cc 1000 URL_direct_to_tomcat
Concurrency Level: 1000
Time taken for tests: 24.132493 seconds
Complete requests: 25000
So,,,, this really make me amazing and there are two questions:
1, According to my configurations, apache(2.2.4) has NO advantage
against tomcat(5.5.15) in processing static content.
2, In processing dynamic content, apache make performance decrease
dramatically.
It¡¯s the matter of MPM-prefork/worker???
----------------------------
FYI:
<IfModule prefork.c>
StartServers 50
MinSpareServers 50
MaxSpareServers 100
ServerLimit 2000
MaxClients 1500
MaxRequestsPerChild 0
</IfModule>
------------------------------
maxThreads="1500" minSpareThreads="20" maxSpareThreads="50"
enableLookups="false" redirectPort="8443" acceptCount="300"