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. 2017-11-07, 22:30:55

Author Topic: php-fpm is freezing showing 500 Internal Server Error  (Read 987 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
This happens now everyday !

All php pages shows 500 Internal Server Error.

I have to killall -9 httpd.event

then /etc/init.d/httpd restart

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: php-fpm is freezing showing 500 Internal Server Error
« Reply #1 on: 2014-10-13, 18:10:50 »
httpd error log still responds with:

[Mon Oct 13 18:10:44 2014] [error] server reached MaxClients setting, consider raising the MaxClients setting !!!

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: php-fpm is freezing showing 500 Internal Server Error
« Reply #2 on: 2014-10-13, 18:14:21 »
This is because you made it wrong Mustafa !

Quote
WARNING: MaxClients of 2000 would require 80 servers,
 and would exceed the ServerLimit value of 16.
 Automatically lowering MaxClients to 400.  To increase,
 please see the ServerLimit directive.

This part must be changed to:

Quote
<IfModule event.c>
    StartServers 2
    MinSpareThreads 42
    MaxSpareThreads 85
    ThreadsPerChild 25
    MaxRequestsPerChild 0
    ThreadStackSize 8196
    <IfVersion >= 2.4>
        MaxRequestWorkers 400
        MaxConnectionsPerChild 0
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 400
        MaxRequestsPerChild 0
    </IfVersion>

    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

to

Quote
<IfModule event.c>
    StartServers 2
    MinSpareThreads 42
    MaxSpareThreads 85
    ThreadsPerChild 25
    MaxRequestsPerChild 0
    ThreadStackSize 8196
    ServerLimit 2000
    <IfVersion >= 2.4>
        MaxRequestWorkers 400
        MaxConnectionsPerChild 0
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 2000
        MaxRequestsPerChild 0
    </IfVersion>

    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

Then everything is back to normal !
« Last Edit: 2014-10-13, 18:15:56 by Spacedust »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: php-fpm is freezing showing 500 Internal Server Error
« Reply #3 on: 2014-10-14, 11:32:57 »
Still not working fine :(

[Tue Oct 14 04:39:10 2014] [error] server reached MaxClients setting, consider raising the MaxClients setting

Then lots of errors - php-fpm is unable to restart because another sock exists:

[14-Oct-2014 04:39:26] ERROR: FPM initialization failed
[14-Oct-2014 04:40:01] ERROR: FPM initialization failed
[14-Oct-2014 04:41:02] ERROR: FPM initialization failed
[14-Oct-2014 04:42:01] ERROR: FPM initialization failed
[14-Oct-2014 04:43:02] ERROR: FPM initialization failed
[14-Oct-2014 04:44:01] ERROR: FPM initialization failed
[14-Oct-2014 04:45:02] ERROR: FPM initialization failed
[14-Oct-2014 04:46:01] ERROR: FPM initialization failed
[14-Oct-2014 04:47:01] ERROR: FPM initialization failed
[14-Oct-2014 04:48:01] ERROR: FPM initialization failed
[14-Oct-2014 04:49:01] ERROR: FPM initialization failed

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.051 seconds with 18 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM