Spwn-fcgi dies after several connections

I recently installed a new ubuntu machine with wordpress, spawn-fcgi and nginx.

Every morning I try to see my blog and I got a Bad Gateway error with a 502 error.

I tried to find some kind of log about why php-cgi died but didn't find anything.

I run spawn-fcgi as follows:

sudo /usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -g www-data -f /usr/bin/php5-cgi -P /var/run/fastcgi-php.pid

I just ran the following test:

ran the spawn-fcgi command and then besieged it.

After about 480 connections, spwn-fcgi died and I started getting 502 errors.

Any idea why this will happen, where can I find some kind of magazines?

+3
source share
1 answer

This may not be a real fix, but an installation

PHP_FCGI_MAX_REQUESTS=400

php 400 , .

+1

Source: https://habr.com/ru/post/1724407/


All Articles