You haven't given your O/S details, but yes, AJP will s*ck big time on older Linux kernals with this test. Older kernals can't handle having 1000+ threads active efficiently. You could try testing again with the APR and/or (experimental) NIO AJP Connectors. These usually get the difference down to somewhat acceptable.
However, using Apache+mod_jk just to increase performance is a myth, based on the state of Tomcat 8+ years ago ;). It will almost always be slower with any current version. "Zufeng Huang" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > 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" > > > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]