Find answers, ask questions, and connect with our
community around the world.

Forums Forums Web Design WordPress Require help urgently – Index.php causes high CPU usage!

  • Require help urgently – Index.php causes high CPU usage!

     David updated 1 year, 9 months ago 2 Members · 2 Posts
  • David

    Member
    December 9, 2020 at 4:03 pm

    Hello all.

    Our Index.Php file is executed 500k+ times which causes us to exceed our CPU usage. How can we optimize this file? Is there a plugin for that or some kind of health check of this file?

    ​

    I have posted this before and didn’t get replies really, at least not helpful ones, though I do appreciate any response.

  • ogrekevin

    Guest
    December 9, 2020 at 4:03 pm

    A lot of requests are routed through this file.

    In stead of working your way backwards from this file, install wp query monitor and identify plugins that are generating high amounts of load.

    Then you could spend some efforts optimizing and speeding up your site , that and/or move to a better host. If all of this is too complicated to do in house, you can always hire a freelancer.

  • ListenToMeCalmly

    Guest
    December 9, 2020 at 4:03 pm

    Index.php basically means “WordPress”. You need more detailed tracing. For that you need skills I can tell you don’t have, so your options are to hire a professional for analysis, or increase hosting capacity. Or ask online and hope someone will do high value work for free.

  • GiddyPower

    Guest
    December 9, 2020 at 4:03 pm

    There is no quick and easy answer, especially with the limited info. It’s sort of like posting, “Why won’t my car run right?” in a mechanic’s forum. Or asking a doctor, “Why does it hurt?”

    Start with the basic WordPress troubleshooting stuff. Make sure WordPress, themes and plugins are up to date. Then try temporarily switching to a different theme like a default WordPress theme. Then disable plugins and reenable one by one to see if that narrows it down or helps isolate the problem.

    This can be caused by legitimate high traffic to a poorly optimized site on bad shared hosting, malicious attacks or even rogue web crawlers.

    Check server logs, traffic logs etc. I’m not sure what kind of hosting you’re on but there are times when your hosting provider support staff will be more helpful than you think. Many times on crappy shared hosting they’re completely useless and you’re on your own. Every so often they’ll actually point you in the right direction.

    Once you’re armed with some additional info start Googling and researching or post your results here. Unfortunately, trouble shooting these issues can take time, especially if you’re inexperienced. Getting help will require a lot more information than you’ve provided which is probably why you haven’t received many helpful responses in the past.

  • MoltoRubato

    Guest
    December 9, 2020 at 4:03 pm

    First, replace index.php with a new blank file. See if that ends the problem. If it does, then do this:

    Edit the original index.php. Delete code one line at a time until the problem stops. When you have IDed the critical code examine it closely, see what it calls, see what you can do about it.

Viewing 1 - 5 of 5 replies
Reply to: David
Your information:

Cancel
Original Post
0 of 0 posts June 2018
Now