aspose file tools*
The moose likes Tomcat and the fly likes number of users that can access site parally Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "number of users that can access site parally" Watch "number of users that can access site parally" New topic
Author

number of users that can access site parally

anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
where can define the number of users that can access site simultaniously?
Leandro Coutinho
Ranch Hand

Joined: Mar 04, 2009
Posts: 417
I don't know, but maybe you can get the number of sessions opened. So if the number of sessions are equal your limit, then someone will be able to access your site only when other session die.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5
In Tomcat you can control the number of Threads available for executing a request - presumably other servers have similar controls.

Bill
anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
where is the place in tomcat can we do that?
Chinmaya Chowdary
Ranch Hand

Joined: Apr 21, 2008
Posts: 432
Hi, Anarkali.
where is the place in tomcat can we do that?

See conf/server.xml.
anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
can you give me the example code.i checked the server.xml.but there is not in my file?
Chinmaya Chowdary
Ranch Hand

Joined: Apr 21, 2008
Posts: 432
If we see server.xml there is a connector for port 8080, where defined number of threads like,
anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
this for about server threds.
what happen if there are two sites deployed in same server.I need to restrict the users for one site?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16250
    
  21

Please note the distinction between "users" and "threads". There is no real limit on the number of active users for Tomcat unless you implement a Domain that keeps a tally and simply bounces logins after the limit has been reached.

The limit on threads, however, is controlled by server.xml, and that restricts the maximum number of concurrent requests that Tomcat will handle.

Since a web client typically can run several request threads concurrently (this helps in things like loading images), this means that the momentary "concurrent maximum users" limit can potentially be LESS than the thread limit, even though the long-term number of users may vastly exceed the thread limit.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
jQuery in Action, 2nd edition
 
subject: number of users that can access site parally