views:

256

answers:

6

What would be a proper way to simulate a large number of requests to test if my web application can handle it?

+3  A: 

You could try using Microsoft's WCAT tools. Look here: http://support.microsoft.com/kb/231282

They're free, too. That's always nice.

aehiilrs
Excellent tool, I've used this one in the past with great success.
Peter J
Free is very nice. We've used this in the past and it's cetter than not testing at all. +1.
David Stratton
Curious about why I got a downvote on this one.
aehiilrs
+1  A: 

I've used JMeter in the past, and I find it to be very useful for stress/load testing as website, even ones written in ASP.NET (with or without MVC).

In general you would want to (with any tool) write a script of what an average user of your site would do. You may even end up creating multiple of these scripts. Tools like JMeter even allow for a random element to be added to a script. With these scripts created a load testing tool can then simulate as many users as you desire hitting your site.

I would recommend allow JMeter to slowly ramp up the number of concurrent users and watch the response time graph. At the point where the response time starts increasing too highly is at the point where you've hit the maximum number of users (given you scripts) that your site can handle.

Jason Whitehorn
+2  A: 

Depending on your budget, you may be interested in some load testing software designed for this. A Google search brings up all sorts of alternatives. This is probably the best way to do it.

This one has a free trial version and isn't too pricey, but I would recommend shopping around first.

David Stratton
+1  A: 

ab and httperf are two, more unixy options, if you don't mind delving in that direction.

There's a nice screencast for using httperf by peepcode.

Adam Taylor
A: 

Post the URL on stackoverflow.

Make it sound like a challenge, so lots of people come check it out: "Can you find the hidden performance problem in this app?"

Joeri Sebrechts
I think this could make sense. There should be a site where you invite people to your site for generating load. If they generate load they get points and with points they can request load.
Malcolm Frexner
@Joeri, @Mathias - would YOU be prepared to spend lots of time generating load for someone for free? I certainly wouldn't!
Stephen C
@Stephen: i know stackoverflow and comedy go together like fine wine and jelly beans, but I'm sorry my attempt at humor was not received as such.
Joeri Sebrechts
A: 

Use the load testing tools from Visual Studio Team System. 2010 if you can get it.

The tools are great to use and provide wonderful instrumentation. There is also a programming model to go with the tools, allowing you to make some very complex testing scenarios possible.

Nat