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, 21:46:45

Author Topic: Very slow WWW server after moving from CentOS 5.9 to 6.4  (Read 2135 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Nginx is full of such errors:

Code: [Select]
2013/08/14 08:31:45 [error] 15901#0: *46165 upstream timed out (110: Connection timed out) while connecting to upstream,
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: Very slow WWW server after moving from CentOS 5.9 to 6.4
« Reply #1 on: 2013-08-14, 15:38:11 »
It seems Apache is using prefork MPM even if I use php_fpm_event.

Code: [Select]
httpd -V | grep MPM
Server MPM:     Prefork
 -D APACHE_MPM_DIR="server/mpm/prefork"

Is this correct ?

I see httpd.event processes...
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Very slow WWW server after moving from CentOS 5.9 to 6.4
« Reply #2 on: 2013-08-14, 18:42:51 »
Yes, correct. Check '/etc/sysconfig/httpd' to know htttpd mpm.

To speedup, need increasing php-fpm children and add timeout on nginx and php-fpm to solve timeout issue.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: Very slow WWW server after moving from CentOS 5.9 to 6.4
« Reply #3 on: 2013-08-14, 18:54:00 »
Quote from: "MRatWork"
Yes, correct. Check '/etc/sysconfig/httpd' to know htttpd mpm.

To speedup, need increasing php-fpm children and add timeout on nginx and php-fpm to solve timeout issue.

I've changed MaxClients in httpd.conf related to prefork.

Now it works fast. Should I change MPM to event ?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Very slow WWW server after moving from CentOS 5.9 to 6.4
« Reply #4 on: 2013-08-14, 19:02:29 »
Prefork is different think with event/worker. Prefork is php embedded (integrated) to httpd itself and that why timeout not most issue. Event/worker is php will be request by httpd to fastcgi.

On Prefork, php instance will be the same with httpd instance (because embedded). In Event/worker, no need huge amount httpd instances (better choose 'default' on 'apache optimize') but need hugh amount of php threads (imagine instances as 'windows browser' and thread as '1 windows with many tabs').

We don't need huge amount of MaxClient for event/worker but need huge amount of php threads (for php-fpm).
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: Very slow WWW server after moving from CentOS 5.9 to 6.4
« Reply #5 on: 2013-08-14, 20:36:47 »
I got correct settings inside /etc/sysconfig/httpd.rpmsave and httpd got overwritten.

Now all works fine. Thanks for pointing this out ;)
« Last Edit: 1970-01-01, 01:00:00 by Guest »

 


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

Page created in 0.035 seconds with 17 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM