logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: mod_fastcgi process fails apparently randomly
Author
ted.byers



Joined: 03 Jan 2013
Posts: 19

PostPosted: Tue 19 Feb '13 21:55    Post subject: mod_fastcgi process fails apparently randomly Reply with quote

About 4% of the time, my FastCGI script fails. 7 out of 175 requests to it within the space of about 3 minutes fail.

In my error logs, I see many failed FastCGI processes with error messages of either with "terminated with exit with status '3'" or with "terminated with exit with status '25'". I also see messages in my error logs related to dynamicMaxClassProcs being reached. But only some of these can be related to the failed requests. I see virtually nothing in either the output my client script gets or in the error logs as to why this happens or anything specific to my code.

How does one debug and correct this sort of problem so that it does not happen again? Where is there detailed documentation of how to deal with debugging FastCGI scripts in general (I am tempted, also, to start writing FastCGI scripts in C++ (as I have C++ development tools - and I just need to source a library that I can link my C++ to, as well as learn how to deploy such a binary, but that is another matter entirely).

I see the documentation of the configurable parameters for mod_fastcgi, but I have yet to find good documentation on what values to use for each of these, why, and what combination(s) of such values will provide the greatest reliability and performance.

I am pleased with what I have seen so far, with requests being handled in less than 2 seconds (I suspect it would be even faster if it did not have to access web services on the other side fo the planet), where the CGI script it replaced took over 20 seconds, but I wonder what will happen with multiple, high frequency, requests being made to it. Is there anyone who can provide guidance on that matter?

I guess, this is a plea for two things. 1) an explanation and solution for my immediate problem, related to having 100% of my requests to my FastCGI process being successful, instead of only 96%, and 2) a series of links to resources that I can use to become more independant on figuring out how best to debug FastCGI processes, and solve whatever problems I see arising.

Thanks

Ted
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 04 Mar '13 16:56    Post subject: Reply with quote

You might increase the dynamicMaxClassProcs setting. See http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html

I think you need to increase

-processes
-maxClassProcesses
-maxProcesses
Back to top


Reply to topic   Topic: mod_fastcgi process fails apparently randomly View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules