Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-26, 04:40:38

Author Topic: [Tue Oct 07 05:29:52 2014] [error] server reached MaxClients setting, consider r  (Read 3147 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
My Apache is freezing at least once a day with error message:

Quote
[Tue Oct 07 05:29:52 2014] [error] server reached MaxClients setting, consider raising the MaxClients setting

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Don't select 'optimize' in 'apache optimize'. Since certain version of v7, MaxClients set max as '400' (no more).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
I had the same issue: http://forum.mratwork.com/kloxo-mr-development/apache-hang-ups/

I raised the open files to 4096 and ever since i haven't had the issue.

My Apache is freezing at least once a day with error message:

Quote
[Tue Oct 07 05:29:52 2014] [error] server reached MaxClients setting, consider raising the MaxClients setting
Kloxo-MR!

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
I have 1600 domains:

netstat -plan    | grep :30080| less | wc -l
8350


My current config:

Quote
Timeout 150
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
ServerLimit 2000

<IfModule prefork.c>
    <IfVersion >= 2.4>
        Mutex default mpm-accept
    </IfVersion>
    StartServers 6
    MinSpareServers 4
    MaxSpareServers 16
    ServerLimit 2000
    <IfVersion >= 2.4>
        MaxRequestWorkers 4
        MaxConnectionsPerChild 2000
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 2000
        MaxRequestsPerChild 2000
    </IfVersion>
    MaxMemFree 2
    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

<IfModule itk.c>
    <IfVersion >= 2.4>
        Mutex default mpm-accept
    </IfVersion>
    StartServers 6
    MinSpareServers 4
    MaxSpareServers 16
    ServerLimit 100
    <IfVersion >= 2.4>
        MaxRequestWorkers 4
        MaxConnectionsPerChild 2000
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 2000
        MaxRequestsPerChild 2000
    </IfVersion>
    MaxMemFree 2
    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

<IfModule worker.c>
    <IfVersion >= 2.4>
        Mutex default mpm-accept
    </IfVersion>
    StartServers 6
    MinSpareThreads 4
    MaxSpareThreads 16
    ThreadsPerChild 25
    <IfVersion >= 2.4>
        MaxRequestWorkers 1000
        MaxConnectionsPerChild 0
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 2000
        MaxRequestsPerChild 0
    </IfVersion>

    ThreadStackSize 8196
    MaxMemFree 2
    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

<IfModule event.c>
    StartServers 4
    MinSpareThreads 4
    MaxSpareThreads 16
    ThreadsPerChild 25
    MaxRequestsPerChild 0
    ThreadStackSize 8196
    <IfVersion >= 2.4>
        MaxRequestWorkers 1000
        MaxConnectionsPerChild 0
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 2000
        MaxRequestsPerChild 0
    </IfVersion>

    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

Include /opt/configs/apache/conf/defaults/*.conf
Include /opt/configs/apache/conf/domains/*.conf
« Last Edit: 2014-10-07, 13:23:26 by Spacedust »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Change 'MaxClients 2000' to 'MaxClients 400'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Change 'MaxClients 2000' to 'MaxClients 400'.

Changed ;)

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.042 seconds with 18 queries.

web stats analysis