Hi,
I would like to know how many hits per hour PHP can handle perfectly assuming the database is MySQL and the web hosting plan is VPS with 512 MB Ram and 50 GB for Data transfer?
Cheers.
Hi,
I would like to know how many hits per hour PHP can handle perfectly assuming the database is MySQL and the web hosting plan is VPS with 512 MB Ram and 50 GB for Data transfer?
Cheers.
it’ll handle all the hits that your web site is likely to receive in the next five years at least
why, how many hits per hour are you expecting?
and when will we actually get to see this web site that you have been building and for which you have asked, oh, easily a couple dozen questions?
At 100kb per page that’s around 700 per minute.
Wow that’s fair enough. I thought it is less than this but how did you count that number?
When you start with 50 gigs of data per month and transfer approximately 100kb per page then you end up being able to transfer half a million pages. Half a million pages per month is around 50 thousand pages every three days. Three days is 72 hours, and the 5/7 ratio coming to 0.714 means that you get around 700 pages, perhaps a fraction under due to the other 2 hours every 3 days.
Don’t believe me? Well that is a rough calculation so let’s crunch those numbers and see where they get us.
50 gigs / 100 kilos of data is 500,000 pages every month.
Take that up to 12 months and divide by 365 days, and you have 16,438 pages per day.
Divide that by 24 hours in a day and you have 685 pages per day, which is only 2 percent off from the estimate.
Not bad for an estimate.
Eh? How do you get 50 million pages every three days from only half a million per month? 50 thousand perhaps?
Well, it highly depends on the content being sent. I have 1TB of transfer per month and a dedicated server. Then again, I could easily incur 1TB of transfer since I’m developing software that people can download. I’m a huge dedicated server fan - no one can tell me what I can or cannot do with the box in terms of CPU and RAM usage - the two primary reasons people get kicked off of web hosts. I’ve never figured out why anyone would get a VPS - they cost more and it seems the user can still get kicked off by the host for the same reasons they would get kicked off of $4/month hosting.
As to how many hits per hour PHP can handle, the AB testing tool in Apache could be useful. I ran some tests of my own a while back of Barebones CMS vs. plain HTML with AB:
http://barebonescms.com/documentation/performance_analysis/
AB is useful for load testing a web application to see how it will perform under extreme conditions (Reddit, Digg, Slashdot, etc).
I’ve personally found that sites that use MySQL are susceptible to large performance drops that aren’t obvious until enough visitors start hitting the site. A MySQL database connection takes a few milliseconds to set up and then just one (unoptimized) query can take many seconds. It depends heavily on the application. An AB test even on your computer could provide a reasonable picture of what to expect.
Don’t know where you get that idea
e.g
2gb vps at clustered.net £30@month
2gb dedi at rapidswitch £80@month
Sure you can get rubbish dedicated servers for less with no raid and old processors but generally a vps will always be cheaper.
With regards to resource overuse on a vps, you’re unlikely to get issues unless you (like shared hosting) use a cheap oversold provider or in general openvz virtualisation (which is what tends to be used by overselling vps providers).
Too true, it was slip of the brain while typing, as 50 thousand was intended to be expressed, but million got typed instead. Have edited the post for clarity.