• NikonRumors

    (@nikonrumorsadmin)


    I am new to wordpress (running the latest 2.6.5) – I tried to search the forums for this topic, but could not find any related issues.

    In the past 2 days noticed a dramatic increase of the CPU usage for the index.php file (now it takes 73% of the total CPU usage!). This is causing an overall increase of the CPU usage on my server that could potentially lead to problems.

    I went back to my old backups and compared the index php file. A week ago, the index.php file was empty:
    <?php
    // Silence is golden.
    ?>

    Now I have:
    define('WP_USE_THEMES', true);
    require('./wp-blog-header.php');

    Is this causing my increase in CPU usage? How can I fix that?
    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter NikonRumors

    (@nikonrumorsadmin)

    I checked my other blogs and the index.php file looks identical, so I guess this is not the problem. I updated all my plugins and I am still getting a lot of hits on the index.php file. I looked in the the CPU usage history and index.php was not even present in the report (which means insignificant number of hits in the past).

    What could cause this increase number of hits on the index.php file?

    Thread Starter NikonRumors

    (@nikonrumorsadmin)

    I was changing the number of posts displayed on the first (front) page – could this screw up the WP cache (I am using the WP super cache plugin) and cause the increase number of hits on index.php?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    index.php is the main WordPress entry point. ALL HITS to the blog will appear to be going into “index.php”. So yeah, it’s going to take most of the usage.

    The “silence is golden” is a different file altogether, one in the wp-content folder. It’s not the main index.php file.

    Using the supercache plugin will reduce the hits to index.php until the cache is cleared and you make a new post or people make comments or what have you. Then it’ll get hit again when the cache is regenerating.

    Thread Starter NikonRumors

    (@nikonrumorsadmin)

    Or maybe because I updated my wp-cache plugin, which probably cleared all the cache and now everything goes back through the index.php in order to get cached again. This probably would explain the increase number of hits on the index.php. I did not think about this – I will explore this further. I could be wrong.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘need help – index.php eats a lot of CPU’ is closed to new replies.