mod_fcgid: fcgid processes serving static content as well

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

 



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) and the
counter "Accesses" on server-status page increments as well.

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
   3: FcgidIPCDir /var/run/fcgidsock
   4: FcgidProcessTableFile /var/run/fcgid_shm
  10: FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 5000
  11: FcgidMaxRequestsPerProcess 4990
  12: FcgidProcessLifeTime 5184000
  15: FcgidIdleTimeout 300
  16: FcgidIdleScanInterval 60
  18: FcgidBusyTimeout 240
  19: FcgidBusyScanInterval 60
  21: FcgidConnectTimeout 20
  22: FcgidIOTimeout 240
  24: FcgidMinProcessesPerClass 0
  25: FcgidMaxProcessesPerClass 10
  29: FcgidSpawnScore 0
  30: FcgidTerminationScore 0

SuexecUserGroup user group
Options +ExecCGI
AddHandler the-php .php
Action the-php /mh-bin/php-wrapper.fcgi

---------------------------------------------------------------------
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