How many number of concurrent users can a php site handle?
I am new to php. I want to know how many number of concurrent users can a normal php site with mysql database with around 15 to 20 tables can handle?
3 Responses to “How many number of concurrent users can a php site handle?”


It's totally dependent on the hardware that's running on the MySQL and web servers that support your site.
A simple site with only 15-20 tables will have no problem handling several thousand users, assuming that you're not getting more than 3-500 concurrent users — Unless you're planning on a LOT of traffic to your site, you don't really need to worry about the limitations of your software.
Be wary of hard and fast "limits" if you're given any — from years of experience i can tell you that it almost always depends on the hardware that's supporting the software, not the software itself, that limits you.
Report this comment
600 web pages/sec to 1000 concurrent users
Report this comment
This depends on a lot of variables.
Hardware – the site may have many servers running the site. For instance one site may have 6 web servers running just the one site or a few sites.
Database – some databases are better then others however it also depends on how many database servers it has. If it's going to be a high volume and high database active site then having a database cluster is common. Also tuning the database is required for optimal performance.
Code -
You can make or break the best hardware and databases with improper coding. It's best to write all of your SQL using the proper database indexes (or create such indexes). Also taking steps to limit the number of database queries, connections, as well as time for the web server to process the code is important.
If you have a lot of table joins then performance will suffer.
You may want to look in to using items like memcache which can help cache data items and relieve some of the load.
Overall – it takes a lot of effort to make a highly available and high performing application. Keep all of this in mind while programming and creating your database.
Report this comment