logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache performance tests with ab
Author
Qmpeltaty



Joined: 06 Feb 2008
Posts: 182
Location: Poland

PostPosted: Fri 17 Jun '11 10:39    Post subject: Apache performance tests with ab Reply with quote

How to run more than 1000 concurrent request with -c option ? Ab hangs every time i want to test more than 1000 concurrent requests.

Any idea ?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Fri 17 Jun '11 10:50    Post subject: Reply with quote

I guess your OS and / or apache can't handle so many simultaneous requests. How did you configure your mpm? Which OS do you run?

Do you realy need that your server can handle that many requests at the same time? Even on very busy server I've seen not more than 300 at the same time. Notice simultaneous requests from a single client != reqests/second from apache.
Back to top
Qmpeltaty



Joined: 06 Feb 2008
Posts: 182
Location: Poland

PostPosted: Sat 18 Jun '11 11:25    Post subject: Reply with quote

James Blond wrote:
I guess your OS and / or apache can't handle so many simultaneous requests. How did you configure your mpm? Which OS do you run?


Win2k8 x64

ThreadLimit 5000
ThreadsPerChild 500
MaxRequestsPerChild 10000

James Blond wrote:

Do you realy need that your server can handle that many requests at the same time?


Yes, and even more.

James Blond wrote:

Even on very busy server I've seen not more than 300 at the same time.


Site served by apache i need to tune is very popular - even 1000-1200 request/s. Apache works as loadbalancer for JBoss application server which means that requests last longer (even 3-5s) than sites based on pure html or php.

James Blond wrote:

Notice simultaneous requests from a single client != reqests/second from apache.


I'm aware of that. What is your experience with that ? Could you recommend any tools to measure it ?
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Sat 18 Jun '11 13:51    Post subject: Reply with quote

re: ThreadsPerChild 500
This limits Apache to processing 500 simultaneous requests because the Windows mpm always uses one child process. If you want to process 1000 simultaneous requests, you need to set ThreadsPerChild to a number greater than 1000.

re: MaxRequestsPerChild 10000
This causes the single Windows child process to restart itself after each 10000 requests. This may help if you have a module with a memory-leak error in it, but it is not otherwise helpful for a high-volume site. If you can set MaxRequestsPerChild to zero (the default for Windows), it will never restart itself - and that would be a better choice for your situation.

You will also want to ensure that whatever connector you use to connect Apache to JBoss is set up for more than 1000 simultaneous connections, else that could become the bottleneck.

Hope this helps,
-tom-
Back to top


Reply to topic   Topic: Apache performance tests with ab View previous topic :: View next topic
Post new topic   Forum Index -> Apache