wordpress index.php high CPU usage

Discussion in 'PHP' started by rambo, Mar 3, 2008.

  1. #1
    I have a wordpress blog but my webhosting company says that index.php is having high CPU usage

    CPU usage: 15.37
    Memory usage: 4.13
    MySQL usage: 0.9

    Top Process %CPU 55.0 /usr/bin/php
    Top Process %CPU 53.0
    
    Top Process %CPU 47.0 [php]
    
    Can anybody tell me why so
    PHP:

     
    rambo, Mar 3, 2008 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    Do you have a bunch of custom plugins in your wordpress? Also how custom is your .htaccess file?

    Usually this would be caused by a really inefficient script, or some really code heavy scripting.
     
    jestep, Mar 3, 2008 IP
  3. rambo

    rambo Peon

    Messages:
    50
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Given below is my htaccess

    # protect the htaccess file
    <files .htaccess>
    order allow,deny
    deny from all
    </files>

    # disable the server signature
    ServerSignature Off

    # limit file uploads to 10mb
    LimitRequestBody 10240000

    # protect wpconfig.php
    <files wp-config.php>
    order allow,deny
    deny from all
    </files>




    # disable directory browsing
    Options All -Indexes


    I ahve some plugins but mostly i feel trusted on. What should be the idle usage for wordpress??
     
    rambo, Mar 3, 2008 IP
  4. rambo

    rambo Peon

    Messages:
    50
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    These are the plugins i used

    adsense-manager
    all-in-one-seo-pack
    google-sitemap-generator
    pagenavi
    polls
    random-posts-widget
    Stats
    Useronline
     
    rambo, Mar 3, 2008 IP
  5. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #5
    What sort of traffic does your website receive? It is possible that the combination of those is creating too high of a load, but usually you see memory usage go way up as well.
     
    jestep, Mar 3, 2008 IP
  6. rambo

    rambo Peon

    Messages:
    50
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    rambo, Mar 3, 2008 IP
  7. kriss0o07

    kriss0o07 Peon

    Messages:
    68
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    So what happend to ur issue ?? is it solved ? If so, what u did to solve this issue. Coz im having similar problem with my hosting company.
     
    kriss0o07, Mar 6, 2008 IP