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-25, 14:57:40

Author Topic: Apache freezing each night for one hour !  (Read 3345 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Apache freezing each night for one hour !
« on: 2014-10-08, 15:17:01 »
What is this ??? None of my pages works during the night for about one hour, then everything back to normal:

Quote
[Wed Oct 08 05:33:19 2014] [error] [client 195.93.251.209] FastCGI: comm with server "/home/kloxo/httpd/webmail/onlinemail/webmail.frix.eu.0fake" aborted: idle timeout (90 sec), referer: http://webmail.frix.eu/
[Wed Oct 08 05:33:19 2014] [error] [client 195.93.251.209] FastCGI: neither POLLIN nor POLLOUT..., referer: http://webmail.frix.eu/
[Wed Oct 08 05:33:19 2014] [error] [client 195.93.251.209] FastCGI: incomplete headers (0 bytes) received from server "/home/kloxo/httpd/webmail/onlinemail/webmail.frix.eu.0fake", referer: http://webmail.frix.eu/

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Apache freezing each night for one hour !
« Reply #1 on: 2014-10-10, 07:09:36 »
Today again - for 35 minutes, then back to normal. Nothing wrong was logged inside logs (apache, nginx and php-fpm).

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache freezing each night for one hour !
« Reply #2 on: 2014-10-10, 07:29:52 »
Only report for webmail.frix.eu?
..:: 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
Re: Apache freezing each night for one hour !
« Reply #3 on: 2014-10-10, 13:12:03 »
I just got it during the day.

I see it recovered default ~lxcenter.conf and Apache was crashing because too small Server Limit...

Now I used apache-optimize and got this:

Quote
Timeout 150
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15

ServerLimit 2000

<IfModule prefork.c>
    StartServers 2
    MinSpareServers 14
    MaxSpareServers 28
    ServerLimit 28
    <IfVersion >= 2.4>
        MaxRequestWorkers 28
        MaxConnectionsPerChild 2000
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 28
        MaxRequestsPerChild 2000
    </IfVersion>
    MaxMemFree 2
    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

<IfModule itk.c>
    StartServers 2
    MinSpareServers 14
    MaxSpareServers 28
    ServerLimit 28
    <IfVersion >= 2.4>
        MaxRequestWorkers 28
        MaxConnectionsPerChild 2000
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 28
        MaxRequestsPerChild 2000
    </IfVersion>
    MaxMemFree 2
    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

<IfModule worker.c>
    StartServers 2
    MinSpareThreads 12
    MaxSpareThreads 24
    ThreadsPerChild 25
    <IfVersion >= 2.4>
        MaxRequestWorkers 1000
        MaxConnectionsPerChild 0
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 1000
        MaxRequestsPerChild 0
    </IfVersion>

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

<IfModule event.c>
    StartServers 2
    MinSpareThreads 12
    MaxSpareThreads 24
    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

but load it way too high !!! I use 6-core Core i7 990x 3.47 GHz, 24 GB DDR3, 2x 240 GB SSD for system/MariaDB + 2x 3 TB for /home

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Apache freezing each night for one hour !
« Reply #4 on: 2014-10-10, 15:09:02 »
Load seems to be fine now. We will see if it will crash again during the night. Mustafa you must check if ~lxcenter.conf isn't overwritten to default when running /script/fixweb.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache freezing each night for one hour !
« Reply #5 on: 2014-10-10, 15:26:58 »
In latest Kloxo-MR 7, MaxClients always no more than 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
Re: Apache freezing each night for one hour !
« Reply #6 on: 2014-10-11, 17:11:12 »
It's about ServerLimit not MaxClients. This night all was working fine.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache freezing each night for one hour !
« Reply #7 on: 2014-10-11, 18:05:56 »
I was change 'apache optimize' calculation with default, low, medium and high options.
..:: 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
Re: Apache freezing each night for one hour !
« Reply #8 on: 2014-10-11, 22:51:37 »
OK - I will test it ;)

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.028 seconds with 22 queries.

web stats analysis