Possible Duplicate:
How do you do Load Testing and Capacity Planning for Web Sites
how many can access a website/system at the same time? if there are too many users in a website, what may happen? what's the best way to prevent it?
Possible Duplicate:
How do you do Load Testing and Capacity Planning for Web Sites
how many can access a website/system at the same time? if there are too many users in a website, what may happen? what's the best way to prevent it?
Depends on a lot of things. What OS, what web server, what are the physical specs of the box, what is the load that the pages will present, etc.? For example, static pages can be served and cached more aggressively than something that requires calculation and processing time for each request.
What you are asking is actually a very involved question that architects and analysts study ad-naseum on a per-project basis. It is great that you want to know the answer, but there is not a single hard and fast rule to provide it for you.
You have several limits:
Considering this your users will face different situations: - Could not connect to your site (too many users already on it) - Slow page loading (small bandwidth) - Intermittent errors because of licensing issues, ...
This will depress and discourage the users to come again. Best strategy is to always limit the number of users to a small number let's say 100 and scale together (hopefully upwards!) with the number of users. You then would have to buy more hardware, enable load balancing, ... but only once you need it.
To protect your server against trivial attacks you can also setup rules to avoid for example too many connections from a single IP (protects against DoS) or introduce some delays if you are flooded by connection attempts (Distributed DoS), ...
Also under high load some problems might appear like concurrency problems, so-called race conditions (bugs) that were not so apparent while 2 or 3 users only were online. Be prepared for it by stress testing your site.
how many can access a website/system at the same time?
The only possible answer to this without more specific information on the setup is "between zero and infinity".
You want to read on scalability a little. I found the story of live journals growth enlightening.
The number of users depends on both the software and hardware. You can test for this, search for "load testing".
You can prevent it by building a site to be "scalable".
I worked on a tool years ago at Quest Software called "Benchmark Factory for Web" that allowed you to record one or more typical web sessions and then play them back as multiple users accessing the site. You would then get a throughput curve that would let you determine the maximum number of users before performance would suffer and how many users you could have before the average page load time exceeded some value.
Unfortunately I think they killed off the web, email, and file server versions and only offer the database version now. Depending on how much money you have, there are a ton of other tools that can help you though -- and if you don't have money, the answer is probably "more users than you are likely to ever see at one time".
Quest Software: FxM FxV
Mercury Interactive (now part of HP) WinRunner/LoadRunner. (??? they have a web monitor, but I'm drawing a blank on the name ???)
There were several others too.