Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How should I stress test my web application?

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,

like image 663
Björn Avatar asked Nov 06 '09 12:11

Björn


People also ask

How do I stress test my code?

Stress Testing process can be done in 5 major steps: Planning the Stress Test. Here you gather the system data, analyze the system, define the stress test goals. Create Automation Scripts: In this phase, you create the Stress testing automation scripts, generate the test data for the stress scenarios.


1 Answers

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.

like image 70
Alex Avatar answered Oct 22 '22 17:10

Alex