You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Stephanie Wullbieter <sw...@gmx.de> on 2008/04/30 16:38:44 UTC
MaxThreads <-> max. users ?
Hello,
on
http://tomcat.apache.org/tomcat-5.5-doc/config/http.html
is for parameter MaxThreads written:
"The maximum number of request processing threads to be created by this Connector, which therefore determines the maximum number of simultaneous requests that can be handled. If not specified, this attribute is set to 200."
Could You please tell me what exact a "request" is?
Does it mean that when I have e.g. MaxThreads=20, 100 users can use my webapp if only 20 of them at the same time request data from the webapp and the others drink coffee?
Is it the same when i have session based sso login?
Thank You kindly
--
Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games!
http://games.entertainment.gmx.net/de/entertainment/games/free
---------------------------------------------------------------------
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
Re: MaxThreads <-> max. users ?
Posted by Alan Chaney <al...@compulsivecreative.com>.
Like most things in complex network apps there is no simple answer.
MaxThreads refers to the number of simultaneous open HTTP network
connections there can be. A connection is opened to enable the HTTP
request response cycle (request from browser -> server, response from
server-> browsers). This does not exactly translate into users because
depending upon the page it is possible for the browser to make multiple
simultaneous requests (images, text, javascript, css etc) for the same
browser page.
'Sessions' in web server parlance refers to the ability whereby the
server can track the state of a 'user conversation' which may spread
across many pages. The identification of the user must be saved
throughout this session if there are authentication issues involved -
private pages, secure forms etc.
There is no direct relationship between the number of sessions and the
number of active, open connections.
When estimating the capacity of a server you must work out the average
page response time and then that will give you the number of users/hour.
The only real way that you can really determine the performance of a
server is to measure it - there are simply too many interacations at a
system level to make sense of any simple calculations.
A server set to handle 200 max connections with a response time of 200ms
can probably handle around about 1000 connections a second.
Factors to consider:
1. what kind of application? Simple file access or complex database?
2. the need for failover (clustering etc)
3. what kind of user interaction? (forms, simple page browsing?)
It should be noted that client interactions using 'ajax' techniques
where the browser reconnects mid-page can actually cause a significant
increase in server traffic. Once again, the only way to know is to
experiment.
HTH
Alan Chaney
Stephanie Wullbieter wrote:
> Hello,
>
> on
> http://tomcat.apache.org/tomcat-5.5-doc/config/http.html
>
> is for parameter MaxThreads written:
>
> "The maximum number of request processing threads to be created by this Connector, which therefore determines the maximum number of simultaneous requests that can be handled. If not specified, this attribute is set to 200."
>
> Could You please tell me what exact a "request" is?
>
> Does it mean that when I have e.g. MaxThreads=20, 100 users can use my webapp if only 20 of them at the same time request data from the webapp and the others drink coffee?
>
> Is it the same when i have session based sso login?
>
> Thank You kindly
---------------------------------------------------------------------
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
RE: MaxThreads <-> max. users ?
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Stephanie Wullbieter [mailto:swullb@gmx.de]
> Subject: MaxThreads <-> max. users ?
>
> Could You please tell me what exact a "request" is?
An HTTP GET, POST, etc., request from a client (usually a browser).
Note that retrieval of a single web page may result in many separate
requests from the client to load images, CSS files, scripts, etc.
> Does it mean that when I have e.g. MaxThreads=20, 100 users
> can use my webapp if only 20 of them at the same time request
> data from the webapp and the others drink coffee?
Yes, with restrictions. If the client maintains a keep-alive request
and you're using the standard connector, a thread will be tied up for
the duration. If you use the NIO or APR connectors, the thread will be
released back to the pool in the keep-alive situation. Take a look at
the table at the bottom of this page:
http://tomcat.apache.org/tomcat-6.0-doc/config/http.html#Connector%20Com
parison
> Is it the same when i have session based sso login?
Yes; they're independent mechanisms.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
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
Re: MaxThreads <-> max. users ?
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Stephanie,
Stephanie Wullbieter wrote:
| Could You please tell me what exact a "request" is?
|
| Does it mean that when I have e.g. MaxThreads=20, 100 users can use
| my webapp if only 20 of them at the same time request data from the
| webapp and the others drink coffee?
Exactly. A request is when the client makes a connection to the web
server and issues an HTTP request (like GET /index.html). While that
request is being processes (typically a very short amount of time), one
of the threads configured above is busy handling the request. After the
request has been handled, the thread goes back to sleep to wait for
another request to come on.
| Is it the same when i have session based sso login?
Sessions, SSO, etc. do not affect this behavior.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkgYkMsACgkQ9CaO5/Lv0PB3YgCeIkDlB6pswhNQpWbP8XzDkGRn
glwAn1woJafGRd7PHgqglBj5+xiz3Quv
=yzZP
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
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