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-29, 11:14:10

Author Topic: 503 error  (Read 3114 times)

0 Members and 1 Guest are viewing this topic.

Offline shoque

  • Junior Member
  • *
  • Posts: 35
  • Karma: +0/-0
    • View Profile
503 error
« on: 2014-03-24, 18:23:20 »
Hello

After adding 17 domain under admin account I got '503 service unavailable or capacity problem' error in some domains but my server responding well in ping test and kloxo blackened still working fast while that error appearing. so please tell me which file to edit to increase the value. I'm using apache and fcgid event. Is this enough to remove that 503?

etc/php-fpm.d ....................

pm.max_children = 250
pm.start_servers = 50
pm.min_spare_servers = 50
pm.max_spare_servers = 50
pm.max_requests = 3000

do I need to edit httd.conf?

thanks

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 503 error
« Reply #1 on: 2014-03-24, 18:32:36 »
Hi,

Option like 'pm.max_children' for php-fpm_worker/_event in httpd. Not related to fcgid.

By default, fcgid set 'PHP_FCGI_CHILDREN' for 5. So, modified /home/apache/tpl/php5.fcgid.tpl with 'customize rule'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline shoque

  • Junior Member
  • *
  • Posts: 35
  • Karma: +0/-0
    • View Profile
Re: 503 error
« Reply #2 on: 2014-03-24, 18:42:38 »
So I'm chaging value of /home/apache/tpl/php5.fcgid.tpl


<?php
    $maxchildren = '500';
    $maxrequests = '5000';
?>

how much ram this value could take? is it enough now to avoid 503?

thanks

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 503 error
« Reply #3 on: 2014-03-24, 18:47:08 »
maxchidren is php thread where every thread need certain memory (let say 32MB for average).

So, setting '500' may need 16GB RAM.

Better increase little bit more. Let say 10 until 20.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.026 seconds with 18 queries.

web stats analysis