Problem with Wordpress AND CPU USAGE

Discussion in 'Site & Server Administration' started by rivermember123456, Jan 28, 2008.

  1. #1
    hi ,
    we have a blog with only 160 posts and about 700 UNIQUE visitor daily ths blog amazingly turn the cpu usage to 51.89%

    its our server info

    CPU: Intel XEON E5310 Quadcore
    RAM: 2GB FBDIMM ECC DDR2
    HDD: 250GB SATA-II 16MB Cache
    Bandwidth: 2500GB
    Switch Port: 100 Mbit


    does anyone else have the same problem or have issue this problem?
     
    rivermember123456, Jan 28, 2008 IP
  2. Pwner

    Pwner Peon

    Messages:
    176
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Is strange, do you have any plugin or cronjob running?
     
    Pwner, Jan 28, 2008 IP
  3. seohyderabad

    seohyderabad Peon

    Messages:
    1,190
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i had this prob with almost same numbers in visits n post. but its not coz of posts or visitors . but some plugin may be taking this much cpu.

    i dont remember exact name i was using gallery plugin name was starting with N . its index.php file was using lost of CPU resources i just deactivated n deleted that plugin completlyn now it is ok
     
    seohyderabad, Jan 28, 2008 IP
  4. rivermember123456

    rivermember123456 Banned

    Messages:
    311
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i m using wp last version alone
     
    rivermember123456, Jan 29, 2008 IP
  5. ro_praetor

    ro_praetor Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    That's very strange. Are you sure wp causes this? I know Wp is bloated and inefficient but still... you are on a dedicated server and you don't have high traffic.
     
    ro_praetor, Jan 30, 2008 IP
  6. sweetfunny

    sweetfunny Banned

    Messages:
    5,743
    Likes Received:
    467
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Do a Top command and then sort it by CPU usage and see what's chewing the processor.

    Also do you have Mod Rewrite running? If your only using a plain install of WP, a problem with rewrite could be looping and chewing the CPU or possibly database tables locking up.

    Look at configuring some cache options as well because you have a good amount of RAM.
     
    sweetfunny, Jan 30, 2008 IP
  7. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Well, I know the ways to radically drop CPU and resource usage for WP (yes, without using WP-Cache or such other conflicting plugins).

    I can do it as a professional job...contact me over IM if needed.
     
    agnivo007, Jan 30, 2008 IP
  8. abdussamad

    abdussamad Active Member

    Messages:
    543
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #8
    type top at the shell and then ctrl+p to sort by cpu usage. To sort by memory usage do ctrl+m .
     
    abdussamad, Jan 30, 2008 IP
  9. rivermember123456

    rivermember123456 Banned

    Messages:
    311
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #9
    wow its 100%
     
    rivermember123456, Jan 31, 2008 IP
  10. mellow-h

    mellow-h Peon

    Messages:
    750
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #10
    As far i know, this happens because of a recent release of wp-cron.php (Used for timestamp). When it fires it keeps running on an infinite loop :) You can do several things to stop it, though i haven't find any correct effective method to stop this from happening, and also wordpress hasn't provide any update for it yet, though there is a known bug on wp-cron.php for previous version which doesn't work here too.

    You can do one from the following:

    1. Install mod_security and add wp-cron.php in the blacklist
    2. Void wp-cron.php and put something to print only, though its not effective all time as it still keeps creating the connections.
    3. If you do not have access to server root and your hoster doesn't allow mod_sec then i suggest you to set a 403 page for wp-cron.php file, you can do it by just putting it on you htaccess:

    Though, i have seen this will also put pressure on the server. My best suggestion goes to mod_sec, and if you have access to root of the server, then i also will suggest you to install an apache module called mod_limitipconn. which limits the usage of specific file / location per IP. Using that module you just need to allow wp-cron.php file once per IP till the http request falls in death :)

    Have a nice time, let me know if you need any help regarding this problem :)
     
    mellow-h, Feb 1, 2008 IP