logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: mod_fcgid: can't apply process slot for c:/php/php-cgi.exe
Author
elavarasan



Joined: 26 Sep 2011
Posts: 53

PostPosted: Wed 23 Nov '11 9:54    Post subject: mod_fcgid: can't apply process slot for c:/php/php-cgi.exe Reply with quote

Would appreciate your help

When i test the benchmark by using ab.exe tools with 500 concurrent users or more than that then in my log file its shows the following error/warning :

mod_fcgid: can't apply process slot for c:/php/php-cgi.exe

mod_fcgid: process 7204 graceful kill fail, sending SIGKILL

So how to resolve or fix this kind of issues/erros and do i need to add any values?

My Mod_Fcgid is :

LoadModule fcgid_module modules/mod_fcgid.so
FcgidInitialEnv PHPRC "c:/php"
AddHandler fcgid-script .php
FcgidWrapper "c:/php/php-cgi.exe" .php


<IfModule mpm_winnt_module>
ThreadsPerChild 1920
MaxRequestsPerChild 0
</IfModule>


Thanks,
Back to top
Kanashii



Joined: 17 Jul 2006
Posts: 155
Location: Porando

PostPosted: Wed 23 Nov '11 11:17    Post subject: Reply with quote

Problem is with php respawn, if process rise the limit of MAX_REQUESTS process is respawn so need time to create new process.

So i had fix this issue by:

FcgidMaxRequestsPerProcess 0

FcgidMaxProcesses 55
DefaultMaxClassProcessCount 35

Or invent MaxProcesses 4 process like in IIS

If you benchmark your server by ab.exe and MaxProcesses is about 55. On begin of benchmark will be CPU usage very HIGH because Apache need create lot of process. So if you had too hight MaxProcesses and MaxRequestsPerProcess is too low Apache will be had problem with respawn process and create new

So tweak 2 varibles:

FcgidMaxProcesses 25
# try 4 - 25 - 130
FcgidMaxRequestsPerProcess 0

When CPu usage is about 100% will be problem with can't apply process so need increase

FcgidBusyTimeout 300
IPCConnectTimeout 300

Sorry for my English
Back to top


Reply to topic   Topic: mod_fcgid: can't apply process slot for c:/php/php-cgi.exe View previous topic :: View next topic
Post new topic   Forum Index -> Other Software