We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,996 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

mod_fcgid: can't apply process slot for error

Hi,
I have Debian 6,Apache 2.2.16. On this run two page first.net - many visit user, second.net - much less page visit. When restart apache2,that run both page ok, but after few minutes/hours cant load page second.net. In /log/apache2/second.net/error is: mod_fcgid: can't apply process slot for /var/www/webuser/php5-wrap In log /log/apache2/first.net is it certainly but less(given the number of user). When is error? What is wrong?

cat /var/www/webuser/php5-wrap

#!/bin/sh
PHP_FCGI_CHILDREN=1
export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_MAX_REQUESTS
exec /usr/bin/php5-cgi

cat /etc/apache2/mods-enabled/fcgid.conf

<IfModule mod_fcgid.c>
  AddHandler    fcgid-script .fcgi
  FcgidConnectTimeout 45
IPCConnectTimeout 100
MaxRequestsPerProcess 1000
MaxProcessCount 2
DefaultMinClassProcessCount 0
FcgidMaxRequestsPerProcess 0
</IfModule>
2
Contributors
1
Reply
14 Hours
Discussion Span
1 Year Ago
Last Updated
2
Views
punko
Newbie Poster
1 post since Jan 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Check how many processes Apache has running. It may be that some scripts are not shutting down after the connection has dropped, or the connections are not being dropped from the client(s), resulting in an exhaustion of resources. I think you can set a connection time-out so that connections are automatically dropped after some period of inactivity. You should also be able to increase the number of allowed connections in the Apache configuration files. I'm just getting started in a new job where this is information I need to learn, but I am not there yet, so this is as far as I can take you.

rubberman
Posting Maven
2,571 posts since Mar 2010
Reputation Points: 365
Solved Threads: 305
Skill Endorsements: 52

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0568 seconds using 2.68MB