Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 50828 invoked by uid 500); 9 Jul 2001 13:03:39 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 50700 invoked from network); 9 Jul 2001 13:03:34 -0000 Received: from router.hotgen.com (HELO hot-ex01.hotgen.com) (194.202.192.237) by h31.sny.collab.net with SMTP; 9 Jul 2001 13:03:34 -0000 Received: by hot-ex01.hotgen.com with Internet Mail Service (5.5.2653.19) id <3GFTK2G6>; Mon, 9 Jul 2001 14:02:19 +0100 Received: from hotgen.com (carrot.hotgen.com [192.168.1.21]) by hot-ex01.hotgen.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 3GFTK2G5; Mon, 9 Jul 2001 14:02:11 +0100 Message-ID: <3B49AB73.37811BDD@hotgen.com> From: "David Cassidy (Programmer)" To: tomcat-user@jakarta.apache.org Subject: Re: Why does Tomcat spend too much time before process a request? Date: Mon, 9 Jul 2001 14:02:43 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C10877.5DBECB80" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C10877.5DBECB80 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Vicente, You say under stress conditions how many hits are you=20 doing on tomcat at the same time ? In server.xml what have you got these set to ... I've only got 10 threads here - you might want more :) How many threads have you got tomcat running ? Are you using ajp12 or ajp13 ? What are you using to time this ?????? David Vicente Mart=EDnez wrote: >=20 > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 > Hi everybody, >=20 > We have tested Tomcat under stress conditions, to see how it works > handling > hundreds of concurrent requests. >=20 > Our system is using Apache as static content server and tomcat as > dynamic > content server (jsp & servlet) >=20 > We have measured ... >=20 > A. the time the request takes to go from the client to the Apache > server. > B. the time the request is in Apache server before an Apache process > gets > it. > C. the time an Apache process takes to redirect the request to Tomcat > server. > D. the time the request is in Tomcat server before a Tomcat process = gets > it. > E. then time a Tomcat process takes to send back the request to = Apache > ... and so on until the request arrives to the client. >=20 > What we have seen is that tomcat is spending a big amount of time = (say > 36%) > in step D. >=20 > and now the questions? >=20 > Is Tomcat prepared to handle a big number of concurrent requests? > How big can be that number? >=20 > Is there any way to configure Tomcat, in order to reduce the time we > have > seen in step D? >=20 > Thanks, >=20 > ________________________________________________________ >=20 > Vicente Mart=EDnez Mart=EDnez / vmartinez@es.wanadoo.com > ________________________________________________________ >=20 > -----BEGIN PGP SIGNATURE----- > Version: PGPfreeware 6.5.3 for non-commercial use = >=20 > iQA/AwUBO0l/RexS7D2tCBWMEQKvbgCgmymxo6hMYHHE0LL3ixNiRjVLsxEAoMy2 > cHABYZdgaa3dSz36xky1IpV5 > =3DrieG > -----END PGP SIGNATURE----- ------_=_NextPart_001_01C10877.5DBECB80 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Re: Why does Tomcat spend too much time before process a = request?

Vicente,

You say under stress conditions how many hits are you =
doing on tomcat at the same time ?

In server.xml what have you got these set to = ...


<Connector = className=3D"org.apache.tomcat.service.PoolTcpConnector">
<Parameter name=3D"handler"
value=3D"org.apache.tomcat.service.connector.Ajp12Connecti= onHandler"/>
<Parameter name=3D"port" = value=3D"8007"/>
<Parameter name=3D"max_threads" = value=3D"10"/>
<Parameter name=3D"max_spare_threads" = value=3D"7"/>
<Parameter name=3D"min_spare_threads" = value=3D"3" />
</Connector>

I've only got 10 threads here - you might want more = :)

How many threads have you got tomcat running ?

Are you using ajp12 or ajp13 ?

What are you using to time this ??????

David

Vicente Mart=EDnez wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi everybody,
>
> We have tested Tomcat under stress conditions, = to see how it works
> handling
> hundreds of concurrent requests.
>
> Our system is using Apache as static content = server and tomcat as
> dynamic
> content server (jsp & servlet)
>
> We have measured ...
>
> A. the time the request takes to go from the = client to the Apache
> server.
> B. the time the request is in Apache server = before an Apache process
> gets
> it.
> C. the time an Apache process takes to redirect = the request to Tomcat
> server.
> D. the time the request is in Tomcat server = before a Tomcat process gets
> it.
> E. then time a Tomcat process takes to send = back the request to Apache
> ... and so on until the request arrives to the = client.
>
> What we have seen is that tomcat is spending a = big amount of time (say
> 36%)
> in step D.
>
> and now the questions?
>
> Is Tomcat prepared to handle a big number of = concurrent requests?
> How big can be that number?
>
> Is there any way to configure Tomcat, in order = to reduce the time we
> have
> seen in step D?
>
> Thanks,
>
> = ________________________________________________________
>
>   Vicente Mart=EDnez Mart=EDnez / = vmartinez@es.wanadoo.com
> = ________________________________________________________
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGPfreeware 6.5.3 for non-commercial = use <http://www.pgp.com>
>
> = iQA/AwUBO0l/RexS7D2tCBWMEQKvbgCgmymxo6hMYHHE0LL3ixNiRjVLsxEAoMy2
> cHABYZdgaa3dSz36xky1IpV5
> =3DrieG
> -----END PGP SIGNATURE-----

------_=_NextPart_001_01C10877.5DBECB80--