Hi, all I post a topic about the performance of apache+mod_jk_tomcat yesterday, and just now, I tried apache ab as the tool to do a benchmark. But the result is amazing. My 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"