tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Baker <raschar...@yahoo.com>
Subject Re: RES: stress test
Date Mon, 11 Jun 2001 15:06:23 GMT
Spare-threads are idle threads. We want a few idle
threads to quickly answer incoming requests. We don't
want too many idle threads, or else we can negatively
impact performance. So, we can represent the config
below with this pseudo-code in an attempt to make it
more clear:

// Max spare threads
while ( IDLE_THREADS > 20 ) {
    server.killThread();
}

// Min spare threads
while ( IDLE_THREADS < 5 && THREAD_COUNT <= 200 ){
    server.spawnThread();
}
--- "Jose Euclides da Silva Junior - DIGR.O"
<jose.euclides@rj.previdenciasocial.gov.br> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> 
> First of all,
> what does "spare-treads" mean?
> Secondly,
> there are 2 very important parameters that should be
> configurated: delay and
> threads - and 1 important concept: each new group
> will begin after the prior
> one ends. So, you should have enough CPU and memory
> to allow multithreads.
> Finally, if you are testing a web page, this kind of
> tool (in general)
> doesnt simulate the real overhead.
> 
> Regards,
> 
> José Euclides Júnior
> __________________________________
> E-mail: jose.euclides@rj.previdenciasocial.gov.br
>             javabrasil@usa.net 
> http://euclides.8m.com
> 
> 
> 
> - -----Mensagem original-----
> De:		altuga@koc.net [SMTP:altuga@koc.net]
> Enviada em:		Segunda-feira, 11 de Junho de 2001
> 08:19
> Para:		tomcat-user@jakarta.apache.org
> Assunto:		stress test
> 
> Hi all 
> 
> i am testing tomcat with using  "ap"  which comes
> with apache
> 
> what is ideal test case , ? for example 1000 user ,
> 7 concurrent is ideal ?
> 
> 
> and while i am testing tomcat sometimes it  uses %98
> cpu and never gives it
> back ..
> i configured my server.xml like that 
>  <Parameter
>                 name="max_threads"
>                 value="200"/>
>             <Parameter
>                 name="max_spare_threads"
>                 value="20"/>
>             <Parameter
>                 name="min_spare_threads"
>                 value="5" />
> 
> any idea ? 
> 
> 
> regards .. 
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 6.5.1
> 
>
iQCVAwUBOyTvmd0YhuJ3BUxtAQFZJQP/czJ45GXaKV+oMMLx4Bpfly2j/q0bXzNI
>
B719dvPKCu+BmB5qmTM4rayKd4qVZGCK+kZSyMSUgqv9RHnOeGcSFywS9MVbRhv7
>
hXzRneAFWWSPAEsWPOWdzYUdY8hlkm3e9X7T+btPNWHRvNrEAPqIwifUGl4vGGxG
> Eo7s29sLgL8=
> =xzb+
> -----END PGP SIGNATURE-----


=====
-
rascharles@yahoo.com
Hacking is a "Good Thing!"
See http://www.tuxedo.org/~esr/faqs/hacker-howto.html

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Mime
View raw message