Bug 55878

Summary: mod_fcgid kills spawned processes too early
Product: Apache httpd-2 Reporter: Andre <reitz>
Component: mod_fcgidAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 2.4.7   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description Andre 2013-12-12 23:04:24 UTC
MinProcesses does not work.
Here the configuration.

FcgidIdleScanInterval     1

<VirtualHost *:80>
    ...
    <Location /fcgi>
        AddHandler	fcgid-script .app
    </Location>
    ...
    FcgidWrapper    "...handler.fcgi" .app virtual
    FcgidCmdOptions "...handler.fcgi" \
	IdleTimeout	1	\
	MaxProcesses	10	\
	MinProcesses    4	\
	MaxRequestsPerProcess 1000
</VirtualHost>

The reason has to do with is_kill_allowed-Funktion, which does this:
if (current_node->process_counter <= current_node->min_class_process_count) ...

The Problem is that the function is_kill_allowed is called for each running handler.fcgi-process from outside but current_node->process_counter is not decreased outside(!).

Greetings, Andre'