XFileSharing Pro - Nginx and fast_cgi errors, tweak help please

Message
Author
venture89
Posts: 95
Joined: Aug 30, 2011 12:11 am

Nginx and fast_cgi errors, tweak help please

#1 Postby venture89 » Oct 29, 2012 6:02 am

Hello All,

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",


# netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n|wc -l
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 });


Any help is much appreciated. Thanks

afdah
Posts: 147
Joined: Jan 27, 2012 2:23 pm

#2 Postby afdah » Oct 29, 2012 6:14 am

i only have nginx wihout fastcgi mod. what is at port 9011 anyway?

venture89
Posts: 95
Joined: Aug 30, 2011 12:11 am

#3 Postby venture89 » Oct 29, 2012 6:17 am

It's the fast_cgi using that port


Code: Select all

tcp        0      0 0.0.0.0:9010                0.0.0.0:*                   LISTEN      835/perl-fcgi
tcp        0      0 0.0.0.0:9011                0.0.0.0:*                   LISTEN      1203/perl-fcgi

admin
Site Admin
Posts: 1812
Joined: Mar 22, 2006 12:32 pm

#4 Postby admin » Oct 29, 2012 6:36 am

Already replied in ticket.

venture89
Posts: 95
Joined: Aug 30, 2011 12:11 am

#5 Postby venture89 » Oct 29, 2012 6:37 am

admin wrote:Already replied in ticket.


Thanks admin, for all the help.

ankurs
Posts: 1054
Joined: Mar 10, 2009 2:34 am

#6 Postby ankurs » Oct 29, 2012 7:24 am

was this for main server or file server ?

i think fastcgi was used on main & that has 2000 connections ?

admin
Site Admin
Posts: 1812
Joined: Mar 22, 2006 12:32 pm

#7 Postby admin » Oct 29, 2012 10:48 am

FastCGI is only for main servers.


Return to “XFileSharing Pro”