login community faq

Hi,

Is there a legitimate way to test how many connections my server configuration can handle at a time? I use Django on Apache.

I would like to send an increasing number of requests in a very short period of time until my server goes down.

asked Oct 09 '12 at 13:34

xpanta's gravatar image

xpanta
6014

edited Oct 09 '12 at 13:35


For a simple test, you can use ab.

For a comprehensive test, I recommend Load Impact.

answered Oct 09 '12 at 13:41

seanf's gravatar image

seanf ♦♦
55991220

thanks. One more question. Does ab benchmark my website in general, or just the server? What I am trying to say is that my landing page does 100 queries in 2-5 secs (according to django-debug-toolbar). But, can it really handle 1000 requests in bunches of 10? Even if Apache manages to handle all those requests, MySQL may refuse. Does ab show that? Or will I need another tool (like Load Impact)?

PS: And why I get a 'Document Length' of 0 bytes? (with ab)

(Oct 09 '12 at 15:15) xpanta xpanta's gravatar image

ab benchmarks whatever site you tell it to. For example, if you run this:

1
ab -n 1000 -c 10 http://mydomain.com/

... then it will hit http://mydomain.com/ 1000 times, 10 requests at a time.

ab has the option to include response codes in the output, so if MySQL falls down and causes your site to return a 500 response, then it should be able to show you that.

Regarding the document length, ab is reporting whatever your site is responding with. I don't know anything about your site, so I'm not in a position to know why it would return a 0-byte response. :)

(Oct 09 '12 at 15:32) seanf ♦♦ seanf's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×149
×61

Asked: Oct 09 '12 at 13:34

Seen: 377 times

Last updated: Oct 09 '12 at 15:32

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited