NeWorld

Tag: php-cgi

Žudom užciklinusius php-cgi procesus

by neworld on Bal.04, 2008, under Administravimas, php, Serveris

Buvau susidūręs su problema. Keletą dienų karts nuo karto užsiciklindavo visi 5 php-chi threadai. Nepadėdavo nė kas valandinis php perkrovimas. Problemą išsprendžiau kas minutę paleisdamas tokį skriptuką:

for process in `ps -C php-cgi | grep '.*00:[0-9][1-9]:.*' | awk '{print $1}'`
do
kill -QUIT $process
done

/usr/bin/spawn-fcgi -f /usr/bin/php-cgi -C 5 -p 10001 -u web -g web

Dar php perkraunu kas parą 6 valandą ryto, kai būna mažiausias srautas. Problemos dingo.

7 Comments :, , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!