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-19, 04:01:45

Author Topic: nginxproxy+php-fpm crashing with 502 errors  (Read 18298 times)

0 Members and 2 Guests are viewing this topic.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: nginxproxy+php-fpm crashing with 502 errors
« Reply #45 on: 2017-01-08, 20:31:02 »
Only found 5 times for this error in error_log file with 75KB.
..:: 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: nginxproxy+php-fpm crashing with 502 errors
« Reply #46 on: 2017-01-08, 21:29:28 »
Only found 5 times for this error in error_log file with 75KB.

So far stable ;) I'm waiting for the first crash.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: nginxproxy+php-fpm crashing with 502 errors
« Reply #47 on: 2017-01-09, 10:53:14 »
2 crashes during the night and all pages never loading in the morning until I restart php-fpm :(

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: nginxproxy+php-fpm crashing with 502 errors
« Reply #48 on: 2017-01-09, 19:45:02 »
Almost stable now with these settings:

Quote
pm = dynamic
pm.max_children = 200
pm.start_servers = 10
pm.min_spare_servers = 10
pm.max_spare_servers = 20
pm.max_requests = 500

pm.process_idle_timeout = 10s

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: nginxproxy+php-fpm crashing with 502 errors
« Reply #49 on: 2017-01-09, 19:46:56 »
ps --no-headers -o "rss,cmd" -C php-fpm | awk '{ sum+=$1 } END { printf ("%d%s\n", sum/NR/1024,"M") }'

Shows just 14M per each php-fpm process - so 200 children is just 2,8 GB RAM

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: nginxproxy+php-fpm crashing with 502 errors
« Reply #50 on: 2017-01-10, 23:28:27 »
Allright - full stable ;D

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.055 seconds with 21 queries.

web stats analysis