View Full Version : How much traffic can php handle?
drumsicle
08-23-2001, 11:02 PM
I've read that the php scripts are only stable up to 15k per day. I want to start a top list site, and found a very affordable php script with mysql backend. But will it only be able to handle around 15k hits a day? I think a toplist would grow beyond that very quickly.
subog
08-23-2001, 11:08 PM
Who said 15k/day?
I run multitopsites on a single server (php + mysql) with total over 100k/day without any problem.
drumsicle
08-23-2001, 11:13 PM
Excellent! That's good news.
But be sure whether the php script connect to the mysql database every time it call. If yes, you might use a lot of memory or slow down the server.
I personally also running a top site using cgi and php. Some fucking hackers or some webmaster want to increase their hits, they continous run my php script and make my server slow. So you have to careful about that.
subog
08-24-2001, 12:42 AM
yeah, it kinda depend on how the script was coded :-)
Mine was optimized and "uncheatable?" without gateway so I dont need to worry :-)
drumsicle
08-24-2001, 12:50 AM
Yeah, I'm kinda worried about all of the cheaters. Did either of you try PHP Rank Pro? This is the one I'm looking at. It does have cheat protection, but it doesn't give too many details.
subog
08-24-2001, 01:40 AM
Contact me icq 26785841
My site is getting 200K impressions daily, its a hit counter written in php mysql. It bogs down the CPU - around 50-70% CPU usage on mysql on a P3 900 processor.
Maybe its cos I wrote the script myself, can someone optimise it for a price?
salsbury
08-24-2001, 10:21 AM
<font face="Verdana, Arial" size="2">Originally posted by Bear:
I personally also running a top site using cgi and php. Some fucking hackers or some webmaster want to increase their hits, they continous run my php script and make my server slow. So you have to careful about that.</font>
absolutely and this is the first time i've seen anyone concerned with this. bravo.
something to keep in mind is that your scripts may work fine now, and you may think that .25 seconds of CPU isn't a lot to sort, process, display a toplist, but that limits you to 4 hits per second. better to have a cron write to a temp file, mv that temp file to its real location (after checking to see it is the right size (in case of full disk)) and then including it via ssi or cgi.
this sort of thing would be pretty easy to write and protect from server slowdowns from spidering.
dbarry
08-24-2001, 12:47 PM
The site with the highest amount of traffic gets over 500K impressions daily (ultradonkey) . We have another client using 17 versions of our script on one and the same server with his biggest site over 100K already. So I really don't know if the combination of php & mysql has a limit of traffic per day.
Martin
http://www.dot5productions.com
And then there is http:/www.zend.com/ for increasing php speed and security
donger
08-24-2001, 01:34 PM
yeah, i've been using PHP/MySQL for about 3 years now and have never had a problem with speed; our server is running about 10-15 sites using a trade script i wrote in PHP with hardly any problems;
2:32PM up 64 days, 23:01, 2 users, load averages: 0.17, 0.17, 0.16
One way to reduce CPU overhead (you'll need more ram, though) is to use persistent connections (mysql_pconnect() in php). This creates a mysql connection for each apache process that can be reused over and over again, instead of creating and killing one each time the script runs. Also, make sure that you're using the embedded apache version of PHP and not the CGI version; the latter is as slow as perl CGIs just about.
<font face="Verdana, Arial" size="2">I've read that the php scripts are only stable up to 15k per day.</font>
hah! who told you that? their script must have been running on a vhost with 500 other users and load averages in the 30s. IMHO PHP/MySQL are awesome, can handle whatever the adult web can throw at them.
There's people out there running mysql dbs with millions of rows, so rest assured it can handle the ~2000 row databases of your CJ sites and toplists http://bbs.adultwebmasterinfo.com/ubb/smile.gif
forever proselytizing PHP,
donger
PHP can handle just as much traffic as HTML.
If you make a html page too big you'll crash the surfers browser.
If you make the php too big you'll crash the webserver.
Same with Perl / C / whatever.
It all depends on how well written the script / pages is
"stable up to 15k"
Even perl is stable with 15k/day. http://bbs.adultwebmasterinfo.com/ubb/smile.gif
You can run 100k+++ , but you'll need some good ram and power.
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.