Bug 55878 - mod_fcgid kills spawned processes too early
Summary: mod_fcgid kills spawned processes too early
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_fcgid (show other bugs)
Version: 2.4.7
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
Depends on:
Reported: 2013-12-12 23:04 UTC by Andre
Modified: 2013-12-12 23:44 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
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
    FcgidWrapper    "...handler.fcgi" .app virtual
    FcgidCmdOptions "...handler.fcgi" \
	IdleTimeout	1	\
	MaxProcesses	10	\
	MinProcesses    4	\
	MaxRequestsPerProcess 1000

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'