Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I have a tomcat6 web server running on Ubuntu and I was wondering if there was a way that I could limit the number of people who could access ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    1

    Limit the number of Tomcat connections


    Hi,
    I have a tomcat6 web server running on Ubuntu and I was wondering if there was a way that I could limit the number of people who could access the website at a time.

    Thanks
    Justin

  2. #2
    Just Joined!
    Join Date
    Jul 2009
    Posts
    58
    What you're asking for is impossible in today's environment.

    Unless you create a "currently serving" system that keeps track of users as they come in and keep them in a database of some kind, so that the next "user" is denied. Otherwise the first X many requests made by anyone would be satisfied but not X+1, even though 1 second ago you were serving that client. Also a client can start multiple requests, does that count as 1 or 1 per request?

    What you really want to do is set resource limitations so that your server doesn't crash and die, which you can do.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •