Server reached MaxClients setting

Discussion in 'Installation/Configuration' started by vaio1, Apr 28, 2009.

  1. vaio1

    vaio1 Member

    Hi guys,

    how can I solve this problem? The websites are so slow.

    [Mon Apr 27 22:53:55 2009] [error] server reached MaxClients setting, consider raising the MaxClients setting


    Thanks
     
  2. vaio1

    vaio1 Member

    This is my httpd.conf

    Code:
    <IfModule prefork.c>
    StartServers       8
    MinSpareServers    5
    MaxSpareServers   20
    ServerLimit	 256
    MaxClients       256
    MaxRequestsPerChild  4000
    </IfModule>
    
    Speed Statistics
    Code:
    # ab -n 1000 -c 5 http://92.929.221.121:80/index.php
    This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
    Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
    Copyright 2006 The Apache Software Foundation, http://www.apache.org/
    
    Benchmarking 92.929.221.121 (be patient)
    Completed 100 requests
    Completed 200 requests
    Completed 300 requests
    Completed 400 requests
    Completed 500 requests
    Completed 600 requests
    Completed 700 requests
    Completed 800 requests
    Completed 900 requests
    Finished 1000 requests
    
    
    Server Software:        Apache/2.2.3
    Server Hostname:        92.929.221.121
    Server Port:            80
    
    Document Path:          /index.php
    Document Length:        479 bytes
    
    Concurrency Level:      5
    Time taken for tests:   0.193536 seconds
    Complete requests:      1000
    Failed requests:        0
    Write errors:           0
    Non-2xx responses:      1001
    Total transferred:      720720 bytes
    HTML transferred:       479479 bytes
    Requests per second:    5167.00 [#/sec] (mean)
    Time per request:       0.968 [ms] (mean)
    Time per request:       0.194 [ms] (mean, across all concurrent requests)
    Transfer rate:          3632.40 [Kbytes/sec] received
    
    Connection Times (ms)
                  min  mean[+/-sd] median   max
    Connect:        0    0   0.0      0       1
    Processing:     0    0   0.6      0       2
    Waiting:        0    0   0.2      0       2
    Total:          0    0   0.6      0       2
    
    Percentage of the requests served within a certain time (ms)
      50%      0
      66%      1
      75%      1
      80%      1
      90%      1
      95%      1
      98%      1
      99%      1
     100%      2 (longest request)
     
    Last edited: Apr 28, 2009
  3. falko

    falko Super Moderator Howtoforge Staff

    Please raise MaxClients and ServerLimit and restart Apache.
     

Share This Page