php problem ??? - DmT - 10-17-2007 07:37 AM
hi, i have a server with ispCP
all works fine, but, when you try todo a large query with php, the cpu load go to critical, to try to get where is the problem, i install monit, and the problem its the php configuration, apache goes down, but all the other services are working ok, i host 5 invision forums, when i try to send a mail to my user the apache (php) fails....
*Server :
Amd Opteron Dual Core 1210 1.8 ghz
2 gb ram
400 gb hdd
RE: php problem ??? - joximu - 10-17-2007 07:48 AM
Hi
first: could you please post such big files without the comment lines...
ok, the master php.ini is used ti run ispcp itself - there is a php.ini for every vhost (if you run ispcp in the "normal" way...).
I'd check the logfiles for the vhosts - maybe enable php logging to a logfile...
If you have the suhosin library installed, maybe you should set the simulation mode and have a look at the php log file...
/Joximu
RE: php problem ??? - DmT - 10-17-2007 01:31 PM
post edited,
no suhosin library...
looks like a fcgi problem,
i can turn off fastcgi ???
apache error log:
Code:
[Wed Oct 17 05:25:18 2007] [warn] FastCGI: (dynamic) server "/var/www/fcgi/emulechile.org/php5-fcgi-starter" (uid 2002, gid 2002) started (pid 20632)
[Wed Oct 17 05:25:18 2007] [warn] FastCGI: (dynamic) server "/var/www/fcgi/warez-nation.cl/php5-fcgi-starter" (uid 2011, gid 2011) restarted (pid 20689)
[Wed Oct 17 05:25:19 2007] [warn] FastCGI: (dynamic) server "/var/www/fcgi/warez-nation.cl/php5-fcgi-starter" (pid 20689) termination signaled
[Wed Oct 17 05:25:19 2007] [warn] FastCGI: (dynamic) server "/var/www/fcgi/warez-nation.cl/php5-fcgi-starter" (pid 20689) terminated by calling exit with status '0'
[Wed Oct 17 05:25:21 2007] [warn] FastCGI: (dynamic) server "/var/www/fcgi/emulechile.org/php5-fcgi-starter" (uid 2002, gid 2002) started (pid 21000)
[Wed Oct 17 05:25:24 2007] [warn] FastCGI: (dynamic) server "/var/www/fcgi/emulechile.org/php5-fcgi-starter" (uid 2002, gid 2002) started (pid 21429)
[Wed Oct 17 05:25:31 2007] [warn] FastCGI: (dynamic) server "/var/www/fcgi/warez-nation.cl/php5-fcgi-starter" (uid 2011, gid 2011) restarted (pid 22409)
[Wed Oct 17 05:25:32 2007] [warn] FastCGI: (dynamic) server "/var/www/fcgi/warez-nation.cl/php5-fcgi-starter" (pid 22409) termination signaled
[Wed Oct 17 05:26:03 2007] [warn] FastCGI: (dynamic) server "/var/www/fcgi/emulechile.org/php5-fcgi-starter" (uid 2002, gid 2002) started (pid 26986)
[Wed Oct 17 05:26:05 2007] [warn] FastCGI: can't schedule the start of another (dynamic) server "/var/www/fcgi/warez-nation.cl/php5-fcgi-starter" process: exceeded dynamicMaxProcs (10)
[Wed Oct 17 05:26:06 2007] [warn] FastCGI: can't schedule the start of another (dynamic) server "/var/www/fcgi/warez-nation.cl/php5-fcgi-starter" process: exceeded dynamicMaxProcs (10)
[Wed Oct 17 05:26:06 2007] [warn] FastCGI: can't schedule the start of another (dynamic) server "/var/www/fcgi/warez-nation.cl/php5-fcgi-starter" process: exceeded dynamicMaxProcs (10)
[Wed Oct 17 05:26:06 2007] [warn] FastCGI: can't schedule the start of another (dynamic) server "/var/www/fcgi/emulechile.org/php5-fcgi-starter" process: exceeded dynamicMaxProcs (10)
[Wed Oct 17 05:26:08 2007] [warn] FastCGI: can't schedule the start of another (dynamic) server "/var/www/fcgi/warez-nation.cl/php5-fcgi-starter" process: exceeded dynamicMaxProcs (10)
[Wed Oct 17 05:26:09 2007] [warn] FastCGI: can't schedule the start of another (dynamic) server "/var/www/fcgi/emulechile.org/php5-fcgi-starter" process: exceeded dynamicMaxProcs (10)
[Wed Oct 17 05:26:11 2007] [warn] FastCGI: can't schedule the start of another (dynamic) server "/var/www/fcgi/warez-nation.cl/php5-fcgi-starter" process: exceeded dynamicMaxProcs (10)
[Wed Oct 17 05:26:11 2007] [warn] FastCGI: can't schedule the start of another (dynamic) server "/var/www/fcgi/warez-nation.cl/php5-fcgi-starter" process: exceeded dynamicMaxProcs (10)
RE: php problem ??? - joximu - 10-17-2007 07:08 PM
I wouldn't switch back to mod-php, rather try another fastcgi thing (maybe fcgid)
Here we have the error:
"exceeded dynamicMaxProcs (10)"
You can change the value "10" in /etc/apache2/modules_available/fastcgi_ispcp.conf
FastCgiConfig -minProcesses 1 -maxProcesses 10 -singleThreshold 100
Have a look at the doku
http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html
/Joximu
RE: php problem ??? - DmT - 10-17-2007 11:21 PM
joximu Wrote:I wouldn't switch back to mod-php, rather try another fastcgi thing (maybe fcgid)
Here we have the error:
"exceeded dynamicMaxProcs (10)"
You can change the value "10" in /etc/apache2/modules_available/fastcgi_ispcp.conf
FastCgiConfig -minProcesses 1 -maxProcesses 10 -singleThreshold 100
Have a look at the doku
http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html
/Joximu
Fixed!!!
thxs man
y change the maxprocesses value to 200 and the server work stable now
|