Re: mod_fcgid: fcgid processes serving static content as well

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 29.10.2010 19:08, Jeff Trawick wrote:
> 2010/10/28 Honza Lefty Škoda <lefty@xxxxxxxxxxxx>:
>> Hi!
>>
>> I use mod_fcgid & suexec for safe execution of php scripts. I've
>> recently tested the performance of fcgid
>> and found out that when i request static page (.html or .css)
>> fcgi process is spawned (if doesn't exist yet)
> 
> unexpected
> 
>>                                                                      and the
>> counter "Accesses" on server-status page increments as well.
> 
> expected
Are you sure? I've probably described it wrong way, I meant Accesses
counter of the corresponding fcgid worker (mod_fcgid status section)
> 
>>
>> I'm not sure if this is a bug, result of my wrong settings, or
>> desired behavior, but it imho leads to quite poor performance.
>> I use mpm_worker, gentoo linux, mod_fcgid 2.3.5, apache 2.2.15.
>>
>> Pieces of configuration I found relevant:
>>
>> In file: /etc/apache2/modules.d/20_mod_fcgid.conf
> 
>> Options +ExecCGI
>> AddHandler the-php .php
>> Action the-php /mh-bin/php-wrapper.fcgi
> 
> something more is needed to run static files through php; the other
> directives are irrelevant
> 
> (it is getting processed by php, right?  mod_fcgid can't handle static
> file requests itself)

If I insert PHP code into the static file (like <?php echo "something";
?>), it isn't processed, so it probably doesn't go through PHP
interpreter. Maybe it doesn't go through fcgi worker at all. On the
other hand, the speed of processing static files is imho quite poor
(static file is servered 3x faster than PHP with DB).

The mail reason why I began inspecting this problem is that static files
"wakes" fcgi threads and prevents idle timeouts, spawns new threads and
so. I would expect fcgid not serving static files (and ignoring them in
fcgi process management!) at all.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux