The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP process consuming all my cpu

Discussion in 'General Discussion' started by fcastro86, May 11, 2013.

  1. fcastro86

    fcastro86 Member

    Joined:
    Mar 20, 2012
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    I have a client with a Word Press, however from time to time I check with top my server and it has a php process running for quite some time using100% cpu.

    Is there a way to prevent this from happening? automatically kill php process after certain time of life?

    Thanks in advance.
     
  2. PenguinInternet

    PenguinInternet Well-Known Member
    PartnerNOC

    Joined:
    Jun 20, 2007
    Messages:
    149
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Cardiff, UK
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Have you checked the logs for the site? There's a good chance it's under a brute force attack, as per the countless other Wordpress sites suffering from this at the moment.
     
  3. fcastro86

    fcastro86 Member

    Joined:
    Mar 20, 2012
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator

    Hello, no, it is not an attack.
     
  4. PenguinInternet

    PenguinInternet Well-Known Member
    PartnerNOC

    Joined:
    Jun 20, 2007
    Messages:
    149
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Cardiff, UK
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    You need to determine what within Wordpress is causing the high load then - is it Wordpress itself, is it a module, etc. It's rare for Wordpress itself to cause a high load unless a site is either under a brute force attack or getting significant amounts of visitors.

    I wouldn't recommend going down the lines of trying to kill processes automatically as you're more likely to end up with a corrupted database, etc.

    Cloudlinux could be another option, however unless you're providing a fully managed service you could ask your client to look into why they are monopolising resources.
     
Loading...

Share This Page