https://issues.apache.org/bugzilla/show_bug.cgi?id=49203
Summary: spawning new process if needed
Product: Apache httpd-2
Version: 2.2.15
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_fcgid
AssignedTo: [email protected]
ReportedBy: [email protected]
I have latest stable Apache 2.2 and mod_fcgid with the following config:
#################################################################### mod_fcgid
begin
AddHandler fcgid-script .php
FcgidMaxRequestsPerProcess 10000
FcgidFixPathinfo 1
FcgidZombieScanInterval 5
FcgidBusyScanInterval 5
FcgidBusyTimeout 120
FcgidIOTimeout 120
FcgidIdleTimeout 300
FcgidProcessLifetime 3600
FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 10000
FcgidInitialEnv PHP_FCGI_CHILDREN 0
FcgidWrapper "/usr/local/phpw3/bin/php-cgi -c /usr/local/apache/conf/php.ini"
.php
FcgidMinProcessesPerClass 0
FcgidMaxProcessesPerClass 20
FcgidMaxProcesses 20
FcgidPassHeader Authorization
#################################################################### mod_fcgid
end
I just created the following simple test scripts:
test1.php:
<?
sleep(60);
echo "hello delayed world! ".date("r");
?>
test2.php:
<?
echo "hello world! ".date("r");
?>
then i call test1.php, then a few seconds later test1.php AGAIN, and then
test2.php.
Test2.php returns immediately, as expected, the other two are "working".
In the process list I can see two php processes spawned.
Then Test1.php returns after 60 seconds, as expected:
hello delayed world! Tue, 27 Apr 2010 19:59:05 +0200
but 2nd instance of test1.php is not finished a few seconds later as expected,
since is is being started just then after 1st instance of test1.php is ready,
since it returns this message:
hello delayed world! Tue, 27 Apr 2010 20:00:05 +0200
Well, the module might be designed this way, but I dont like it. mod_fcgid did
not reach the max processes limit, but it enqueued and waited 60 seconds for
the 2nd request. This is not really well.
Would you add some config options to tweak situations like this? For eg.
something like FcgidRatherSpawnThanWaitInterval
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]