Sometimes the server load becomes too high and i see cpu usage and its always this process which is causing the load -
[php] <defunct>
any help on this
Thanks..
Sometimes the server load becomes too high and i see cpu usage and its always this process which is causing the load -
[php] <defunct>
any help on this
Thanks..
Interesting Question
any info about this ?
--
Take a look at the Daily Process Log under the Server Status section in WHM, maybe even paste the output here. It should show up resource intensive sites/users during the day (you can also see stats from previous days - find the link near the top of the page).
Otherwise ... while it is happening, copy the output from ps aux in SSH and paste it here
[php] <defunct> refers to a process that is now actually no longer running.
I am not sure if daily monitoring help for this situation. As you can't found out the exact process which causing such issue.Check following top logs
527 olivl 20 0 0 0 0 Z 28.6 0.0 0:00.27 php <defunct>
2165 jacotb 20 0 0 0 0 Z 51.9 0.0 0:00.34 php <defunct>
2162 expma 20 0 0 0 0 Z 45.2 0.0 0:00.47 php <defunct>
3188 sccei 20 0 0 0 0 Z 20.0 0.0 0:00.33 php <defunct>
2380 nobody 20 0 0 0 0 Z 0.6 0.0 0:00.48 httpd <defunct>
You can see zombie is using large number of CPU on server but we can't found out the exact process. We would like some positive feedback from cPanel engineers to handle such problme on servers.We have already upgraded cPanel,Apache as well as php version to latest and secure version.
Awaiting for reply.
Some issue on http://forums.cpanel.net/f5/out-cont...es-149433.html
Can anybody tell me What will happen if I "kill" those " [php] <defunct> " process??
Will the website down or something else?
If the process is defunct, nothing should happen beyond removing the process in the list. The process isn't running any longer in that instance.
cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
-- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support
Submit a ticket | Check an existing ticket
You can kill the process by issueing command “ps aux | grep -i “defunc” | awk {‘print “kill -9 “$2′} | sh”, however, this is not a permanent solution.
From what i've read is that the root cause of this process is due to one of the bugs from apache on suphp module, normally what you should do is compile the apache and change the php mode from suphp to dso, everything should be working fine again after disabled suphp from the server. All depend if you want to change from suPhp - suPHP is great because it not only makes it more secure, it also allows you to see what is going on more easily. If a user is abusing the server with too much CPU time, you can easily track it with suPHP/suEXEC, but without suPHP/suEXEC it makes it a lot hard to investigate abuse issues.
You can refer to /http://blog.emyhost.com/2010/09/php-defunct-processes-causing-high-cpu-load/ for more information regarding the bugs.