tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zufeng Huang <pond...@yahoo.com>
Subject Re: Its amazing, apache make TC performance decrease dramatically.
Date Fri, 06 Jun 2008 03:25:26 GMT
Bill,
   
  OS: CentOS V4, 2.6.9-42.ELsmp #1 SMP
   
  Dell 6850 with 4*3.1Ghz CPU, 8G memory
  
This is a website service, if connections 800+, some requests become very very slow. 
   
  I have two reasons for using apache+mod_jk+tomcat:
   
  1, URL rewrite
   
  2, Load Balance
   
  According to the result of my benchmark, and if this is the REAL fact, then I meet a headache
problem. I can give up the purpose of LB, but URL rewrite(www.b.com">www.a.com-->www.b.com)
is needed.
   
  So, any more sugesstions?
   
  thanks,
   
  
Bill Barker <wbarker@wilshire.com> wrote:
  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" 
wrote in message 
news:696733.50468.qm@web90508.mail.mud.yahoo.com...
>
> 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:
> 
> StartServers 50
> MinSpareServers 50
> MaxSpareServers 100
> ServerLimit 2000
> MaxClients 1500
> MaxRequestsPerChild 0
> 
>
> ------------------------------
> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org



       
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message