Results 1 to 9 of 9

Thread: [php] <defunct> CPU Process

  1. #1
    Member
    Join Date
    Jan 2010
    Posts
    31

    Default [php] <defunct> CPU Process

    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..

  2. #2
    Member
    Join Date
    Nov 2003
    Posts
    364

    Default

    Interesting Question

    any info about this ?
    --

  3. #3
    Member
    Join Date
    Feb 2010
    Posts
    11

    Default

    Quote Originally Posted by cool999 View Post
    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..
    I got same problem here

  4. #4
    Tam
    Tam is offline
    Member
    Join Date
    Jul 2004
    Posts
    102

    Default

    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.

  5. #5
    Member linux7802's Avatar
    Join Date
    Dec 2007
    Posts
    232
    cPanel/WHM Access Level

    Root Administrator

    Default One more query

    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.

  6. #6
    Member
    Join Date
    Oct 2004
    Posts
    74
    Roberto,

    cPanel articles at cpWiki.org

  7. #7
    Registered User
    Join Date
    Dec 2010
    Posts
    4

    Default Re: [php] <defunct> CPU Process

    Can anybody tell me What will happen if I "kill" those " [php] <defunct> " process??

    Will the website down or something else?

  8. #8
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: [php] <defunct> CPU Process

    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

  9. #9
    Registered User
    Join Date
    Oct 2011
    Posts
    4
    cPanel/WHM Access Level

    Root Administrator

    Default Re: [php] <defunct> CPU Process

    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.

Similar Threads

  1. Too much php defunct Zombie process
    By subin_hutton in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 10-11-2010, 02:51 AM
  2. 100% CPU PHP Process
    By kokyew in forum Optimization
    Replies: 3
    Last Post: 02-15-2010, 06:20 PM
  3. nobody run 34 process.. 108% CPU by PHP loading and PHP5 [defunct]
    By asiansexynine in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 02-05-2010, 06:44 AM
  4. Heavy roundcube and php] <defunct> process
    By parag joshi in forum E-mail Discussions
    Replies: 3
    Last Post: 09-23-2009, 06:26 AM
  5. Apache 1.3.28 Zombie/Defunct Process Bug
    By masood in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 07-21-2003, 02:17 PM