Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

number of users that can access site parally

 
anarkali perera
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
where can define the number of users that can access site simultaniously?
 
Leandro Coutinho
Ranch Hand
Posts: 423
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
where is the place in tomcat can we do that?
 
Chinmaya Chowdary
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Anarkali.
where is the place in tomcat can we do that?

See conf/server.xml.
 
anarkali perera
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you give me the example code.i checked the server.xml.but there is not in my file?
 
Chinmaya Chowdary
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If we see server.xml there is a connector for port 8080, where defined number of threads like,
 
anarkali perera
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18303
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic