Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to increase the number of Apache requests from 150 to something like 500. Can someone shed some light on how to do this?

I'm using cPanel/WHM

share

migration rejected from stackoverflow.com Jun 29 '13 at 15:06

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as too broad by Jenny D, Ward, Falcon Momot, SaveTheRbtz, Scott Pack Jun 29 '13 at 15:06

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
This question appears to be off-topic because it concerns the use of shared web hosting by end users or resellers, rather than the administration of web hosting. –  Jenny D Jun 28 '13 at 8:48

3 Answers 3

Do you mean concurrent requests, if so the setting is:

MaxClients 250

Apache (v1.3 and v2.2) are limited to 250(ish) concurrent requests without a custom build.

Even at 250 you can (with good dynamic code) handle over 25,600 requests a minute (we've done this in production, and ~15% of those requests were dynamic and were much slower then normal). That's over 420 requests a second.

Unless you're a large site, or run long-life HTTP requests (media, some IM systems) this is not a limitation unless you have very poorly coded apps.

share
    
Just out of curiosity where does the "250(ish)" limit come from? I haven't heard of that before. –  Josh Oct 27 '09 at 17:02
1  
It's one of those scaling limits that the apache guys decided on. You can raise it above that, but you're likely to hit other issues. As I said even at 250 you can handle many thousands of concurrent users. –  LapTop006 Oct 28 '09 at 0:14

LapTop006's answer is correct however, if you're using cPanel/WHM, you can't simply modify /usr/local/apache/conf/httpd.conf as cPanel will overwrite your changes. Create a new file:

/usr/local/apache/conf/includes/pre_virtualhost_2.conf

and put your changes in there, specifically the MaxClients 250 suggested by LapTop006. Then run:

/scripts/rebuildhttpdconf
/etc/init.d/httpd configtest

and if everything is OK, run:

/etc/init.d/httpd restart
share

In current time of writting it now seems to be posible to make this change directly in WHM. check under:

Main >> Service Configuration >> Apache Configuration >> Global Configuration

share