How should I stress test my web application?

Björn picture Björn · Nov 6, 2009 · Viewed 13.4k times · Source

I've got a somewhat complex web application, containing Flash and javascript on the client side and PHP functionality server side. The PHP functionality contains system calls (exec()) to merge/edit/create files with gnu software (*nix environment) as well as api calls to REST services for uploading these files (this will be done with cron jobs, however).

We're not ready to go live just yet, we're expecting a large server load directly at launch, so we need to stress test the environment. I've looked in to some libraries, like JMeter, but afaik these libraries cannot handle the Flash - and the merge/edit/create depends on input from the Flash app. How can I stress test my environment in the best possible way?

Best regards,

Answer

Alex picture Alex · Nov 6, 2009

If you are running Apache, you could use ab to stress test the server side of your application.

Apache HTTP server benchmarking tool

Don't know if it can handle Flash and/or Javascript though.

ab is a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server. It is designed to give you an impression of how your current Apache installation performs. This especially shows you how many requests per second your Apache installation is capable of serving.