We have a fairly busy server with both nginx and fast_cgi mods.
However, we are getting lot of the following two errors in nginx logs and site is unreachable at peak hours.
Code: Select all
upstream timed out (110: Connection timed out) while connecting to upstream, upstream: "fastcgi://127.0.0.1:9011",
Code: Select all
FastCGI sent in stderr: "[Mon Oct 29 06:21:44 2012] index_dlf.cgi: Undefined subroutine &index_dlf::UploadForm called at index_dlf.pm line 167", upstream: "fastcgi://127.0.0.1:9011",
Gives about 2000 connections
Server has about 8GB out of 24GB free and CPU is 6.39 at 5 min average.
We have changed the following to 12,000 and 60 as well
Code: Select all
$ENV{FCGI_LISTEN_QUEUE} = 200;
my $proc_manager = FCGI::ProcManager->new({ n_processes => 30 });