Results 1 to 5 of 5
  1. #1

    /usr/bin/php overloads CPU

    Moved to new server today (and upgraded PHP to 5.2.6). All I see now is high CPU load due bin/php + lots of defuncts.

    PHP Code:
     24324      nobody      0      
     97.7      
     0.4      
    /usr/bin/php 
     21253      nobody      0      
     96.0      
     1.2      
    /usr/bin/php 
     28225      nobody      0      
     94.1      
     0.4      
    /usr/bin/php 
     18109      nobody      0      
     79.0      
     0.0      php 
    <defunct
     
    12750      nobody      0      
     50.7      
     0.0      php 
    <defunct
     
    24961      nobody      0      
     18.1      
     0.3      
    /usr/bin/php 
     18967      nobody      0      
     6.3      
     0.0      php 
    <defunct
    Any ideas and/or suggestions would be great on what can cause this. Once I click on process in WHM, it says: The Process no longer exists. Trying to trace this now.
    Last edited by DjiXas; 05-05-2008 at 01:14 PM.

  2. #2
    Join Date
    Jun 2005
    Posts
    703
    defunct means the process has ended.
    How many connections do you have?
    ReflexNetworks means Happy Clients!

  3. #3
    Join Date
    Sep 2002
    Location
    Top Secret
    Posts
    14,135
    /usr/bin/php isn't overloading your server, a client's script is.
    You need to find out which script is killing the server, or what user is running them.

    Usually I wouldn't recommend it, but phpsuexec/suphp can help you find out the user at least. From there, you can find the script.
    Tom Whiting, WHMCS Guru extraordinaire
    Linux problems? WHMCS Problems? Give me a shout
    Check out my WHMCS Addons

  4. #4
    You can also add to your php.ini error_log patch and check what errors are generated, it could help you to trace user.

  5. #5
    Thanks a lot.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •