1

Possible Duplicate:
How do you do Load Testing and Capacity Planning for Web Sites

I have a website, and I want to host it on my own computer, but I'm wondering if it's good enough.

The website checks if the user is logged in and then displays 15 items (title, description) from a mysql database and the rating (stored in another database) and the comments (another database) for each item. It also displays some stats (number of items, comments). I also have an image for each item.

My specs are: AMD Athlon 64 X2 Dual Core Processor 5600+ 2.90 GHz

RAM: 4.00GB

Windows 7 64bit

So what do you think, how much visitors and items could it handle (at once or daily) ? My internet connection is good, around 7-10 mb upload and same download speed

5 Answers5

10

First off, I would be more wary of what your internet provider will think. Its pretty much a universal rule that hosting web sites off of personal connections--regardless of traffic--will violate your ToS and end up with you receiving a warning, or getting your service canceled.

As for your answer, you're not going to have any issues hardware wise. You can host far more on far less.

Andrew

EDIT: Your ISP may allow it, but I'm just warning you--I wouldn't want you to have your service canceled because you violated your respective ToS/AUP. For example, Comcast and Time Warner both prevent you from doing so, and a good portion of ISPs block port 80 on ingress (but not other ports).

Comcast ToS

Technical restrictions:

-use or run dedicated, stand-alone equipment or servers from the Premises that provide network content or any other services to anyone outside of your Premises local area network (“Premises LAN”), also commonly referred to as public services or servers. Examples of prohibited equipment and servers include, but are not limited to, e-mail, Web hosting, file sharing, and proxy services and servers;

Time Warner ToS (they will require that you upgrade to business class if they "catch you" hosting a web server):

Unless you have specifically subscribed for commercial grade service, the ISP Service is provided to you for personal, non-commercial use only. The service cannot be used for any enterprise purpose whatsoever whether or not the enterprise is directed toward making a profit. If it is your intention to use this service for these purposes, please contact Operator to inquire whether commercial grade service programs are available.

Andrew M.
  • 11,412
6

The best anyone here is going to be able to offer you is a wild-ass guess. This isn't something we can estimate for you; we don't have access to your code, your sql statements, or your MySQL and Apache configurations to determine their tuning.

You need to grab some HTTP benchmarking software and measure. That is the only way to get a meaningful answer to your question.

blueben
  • 3,547
5

If you're really concerned about capacity, then running a server on your personal machine is not the answer. Could a machine of that caliber, with a well written web app, serve a few dozen simultaneous users a page that joins info from three database tables? Almost certainly. But if you care enough to ask the question, you should probably just look into some bargain hosting. There's plenty out there. Also, generally speaking, it's far less about the hardware than how well written the app is. Remember, people were serving data driven web sites to hundreds of simultaneous clients on far inferior hardware a decade ago.

ipmcc
  • 151
1

The hardware, software, and connection you describe are certainly capable or running such a site and even handling dozens of hits per second.

However, none of those elements (hardware, software, connection) are ideal for this purpose; whether they will stand up to your specific needs depends entirely on the specific code you've written to accomplish the task. If you have to ask about system requirements for scaling a site, you probably don't (yet) know how to write code that will scale well.

Joel Coel
  • 13,117
0

Assuming you don't have any problems with your service provider either shutting down your internet service or blocking incoming connections on port 80. Your limit is probably going to be determined by your bandwidth and the size of the images that you plan on displaying. Unless you write some really convoluted logic (or have very extensive data manipulation before displaying) for getting the data from the data base you are going to run into bandwidth problems long before you run into problems with to many mysql queries.

stoj
  • 101