WebFaction
Community site: login 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 09 Oct '12, 13:34

xpanta
622544
accept rate: 0%

edited 09 Oct '12, 13:35


For a simple test, you can use ab.

For a comprehensive test, I recommend Load Impact.

permanent link

answered 09 Oct '12, 13:41

seanf
12.2k41836
accept rate: 37%

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)

(09 Oct '12, 15:15) xpanta

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

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. :)

(09 Oct '12, 15:32) seanf
Your answer
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

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×225
×97

question asked: 09 Oct '12, 13:34

question was seen: 3,410 times

last updated: 09 Oct '12, 15:32

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM