There will be a load of 20,000 users for a special festival for around 4-5 
hours ONLY. 

Regards,
Saurabh Agrawal
Manager Technology | Sapient


-----Original Message-----
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Wednesday, March 20, 2013 1:48 PM
To: Tomcat Users List
Subject: Re: Tomcat Behavior on Multiple HTTP requests from same browser

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Saurabh,

On 3/19/13 8:55 PM, Saurabh Agrawal wrote:
> What I want to understand is if the Tomcat will keep Thread 1 as 
> persistent thread to server the second request (for login) from
> the same browser or will it assign a separate thread from the pool
> ?

Tomcat will assign an arbitrary (i.e. random) thread from the pool.

> If I look at my server logs for both the requests from client, the 
> thread id remains the same which gives me a feeling the state of
> HTTP is persistent and till the time browser is not closed, the
> thread won't be returned to the pool.
> 
> Please can someone clarify the above behavior.

What you are probably observing is a server under very low load (maybe
just your two example requests) that just happens to process the two
requests with the same thread.

Don't worry: the threads go back into the pool right away (after the
keepalive timeout, if you are using the BIO connector which is
currently the default).

> Note: I need to configure the maxThreads setting of Tomcat to
> support 20,000 concurrent users in the system. The above
> clarification will help me pick the appropriate setting for
> maxThreads.

20,000 concurrent users is no problem. How often do they all make
requests?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEAREIAAYFAlFJvhAACgkQ9CaO5/Lv0PAkXwCfS5GE/d1yk+w1gN6xNvQ9LLfA
y7sAoJjfeun+2Njsu47uBMrWhDl1xzIv
=en0N
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to