Php <defunct>
Jun 25, 2007the requist top in SSH it give everyday:
Code:
1869 johnhost 15 0 0 0 0 Z 8 0.0 0:00.25 php <defunct>
1871 johnhost 20 0 0 0 0 Z 8 0.0 0:00.25 php <defunct>
the requist top in SSH it give everyday:
Code:
1869 johnhost 15 0 0 0 0 Z 8 0.0 0:00.25 php <defunct>
1871 johnhost 20 0 0 0 0 Z 8 0.0 0:00.25 php <defunct>
There are two vbulletin forums hosted on my colocated, Q6600 Quad Core, 4GB RAM server and this process [php] <defunct> keeps spawning constantly and hogging the CPU resources.
Each process lasts a matter of seconds and dies but it keeps spawning itself constantly. Heres a screenshot:
[url]
Ive tried restarting Apache but it doesn't solve it.
On my server, i have one user ho create load on my server.
user 29508 22.0 0.0 0 0 ? Z 15:18 0:00 [php] <defunct>
That user has more site added with addons from cpanel. How can I found witch site is generating that high load ? Also some time, I have php index.php ( and that don't help me very much )
The server run php as cgi module.
I've had a shared hosting account for several years and never had this problem before. Since yesterday I occasionally get 500 internal server errors on all my websites simultaneously due to a large number of processes on my account. When I log into cPanel and click on View Processes I only see 1 or 2 at a time, but support tells me that there are actually more than 25 processes and this is not allowed.
Apparently they are defunct PHP processes (zombies?) that are waiting on their 'parent' processes to clean them up and for some reason my account is accumulating a lot of these.
Support is not able to tell me which of my PHP scripts is causing this. All they can give me is something like this:
USERNAME 4541 0.0 0.0 0 0 ? ZN 18:25 0:00 [php] <defunct>
USERNAME 4828 0.0 0.0 0 0 ? ZN 18:25 0:00 [php] <defunct>
USERNAME 5114 0.0 0.0 0 0 ? ZN 18:26 0:00 [php] <defunct>
USERNAME 5265 0.0 0.0 0 0 ? ZN 18:26 0:00 [php] <defunct>
...etc
I have several websites on the account that use my own written PHP. I especially use a lot of functions related to mySQL, simplexml_load_file and reading/writing cache files. I don't know where to start looking to find the PHP that is causing these defunct processes.