Ny way to test how many users an application can handle?


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

I am developing an PHP MYSQL application running on a Linux server I was wondering whether there is any way to test how many simultaneous users an application can handle?


Best Answer

You actually need to test two things:

  • breaking point
  • scalablity

For finding the breaking point you can use apache benchmark (ab) for very raw stress testing or Selenium for more complex things. Regarding scaling you have to redo the previous tests with the application running on more powerfull hardware (scale up). Then with your app running from multiple webservers (scale out). Similar for the database backend but that's a littly trickier. When doing this type of tests it would help to have your machines monitored with tools like collectd/munin/zenoss and slow query log enabled in mysql so you can easily pinpoint any bottlenecks. For scale-out testing you can use Amazon's EC2 - 240$ , 100 servers for one hour if I remember correctly. The general idea when trying to profile a (web) application is to have a clear scaling path - i.e. where exactly you need more capacity, how you can provision it to the production environment and when you should do it.

Related Topic