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 have too many requests waiting which can be seen from netstat as follows

$netstat -anp | grep :80 | grep TIME_WAIT | wc -l  
840 
$netstat -anp |grep :80 | grep ESTABLISHED | wc -l 
50

memory usage : 850MB / 1000MB

apache2.conf contains..

<IfModule mpm_prefork_module>
    StartServers          5
    MinSpareServers       5
    MaxSpareServers      10
    MaxClients          150
    MaxRequestsPerChild   0
</IfModule>

<IfModule mpm_worker_module>
    StartServers          2
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadLimit          64
    ThreadsPerChild      25
    MaxClients          150
    MaxRequestsPerChild   0
</IfModule>

<IfModule mpm_event_module>
    StartServers          2
    MaxClients          150
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadLimit          64
    ThreadsPerChild      25
    MaxRequestsPerChild   0
</IfModule>

Are there any configuration changes that can help me or its just my RAM the bottleneck here ?
Urgent help needed..!!

share|improve this question

migrated from stackoverflow.com Feb 13 '11 at 19:03

This question came from our site for professional and enthusiast programmers.

    
what is the current mpm configuration, prefork? worker?. And gives us any configuration concerning Keepalive and tiemout, check as well serverfault.com/questions/86550/… for nice explanations on TIME_WAIT problem (which is not completly related to keep alive, but keepalive timeout is maybe your problem). –  regilero Feb 15 '11 at 12:32

1 Answer 1

You should start by checking out the mod_status module. It will show you much more information about what your Apache web server is doing.

There is documentation available at http://httpd.apache.org/docs/2.2/mod/mod_status.html including an example of how to use it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.