Skip to main content


Setup:

Perl v5.40
AlmaLinux release 9.4
Nginx
Spawn-fcgi

First of all I know there are better ways than using Spawn-fcgi and we are looking at some refactoring; until then we are seeing child processes forked with Spawn-fcgi die from time to time and I have not been able to figure out a way on how to catch them / troubleshoot what is going on/killing them

I have a big try/catch clause in the moment the call comes in

while ( my $q = CGI::Fast->new() ) { eval { 

but its not really catching anything when the processes die. I do have the process ids but I cannot really correlate them to anything in the nginx logs. At the same time I would not expect for nginx to "kill" any fcgi processes or could it?

Any pointers much appreciated.

submitted by /u/kosaromepr
[link] [comments]