WordPress.org

Ready to get started?Download WordPress

Forums

Emergency - wp-admin/admin-ajax.php Using 25% CPUS - $150 overages from hosting (4 posts)

  1. Jennifer
    Member
    Posted 3 years ago #

    hi all,

    i have a bit of an emergency situation. from a report at my hosting company wp-admin/admin-ajax.php is consuming 25% of my CPUs.

    is this a plugin issue if the file lives within the wp-admin? also, i did not use WordPress overnight, and yet wp-admin/admin-ajax.php is still using 25% over the past 6 hours. i can't figure this out and i am being charged more than i can afford for CPU overages.

    my home page is only hit/CPU 7% compared to the 25% of the wp-ajax.php page.

    Method  Path                 HTTP response  Hits  IO Read  %of total
    
    POST  /wp-admin/admin-ajax.php  200         3317  172392    24.28%
    GET   thelooksforless.com/      200         631    45712    7.39%

    this problem has been mentioned in other boards, but closed without a solution.

    thanks,
    jennifer

  2. Jennifer
    Member
    Posted 3 years ago #

    it seems as though either wordpress popular posts or all in one seo pack were the cause of the problem. i saw in a few forums that deactivating these was highly recommended. it makes sense that these may be resource hogs, as they are executed for every page that is loaded.

    i'm going to do a bit more testing to see which one was the primary issue. i will reactivate them one at a time for a full day and see what the results are.

    also, it seems as though if you can do a search all throughout your plugin files for either the variable ajaxurl or a reference to the file admin-ajax.php then that plugin is probably a source of the issue. (according to WordPress.org ajaxurl is always defined in the admin header and points to admin-ajax.php.) it seems as though only the wordpress popular posts plugin was was referencing ajaxurl and admin-ajax.php and not the all in one seo pack.

  3. saleem_chohan
    Member
    Posted 2 years ago #

    Jennifer,

    I am also experiencing same problem.

    Did you find a solution other than deactivating WordPress Popular Posts plugin? If you moved away from this plugin, then which one you chose to display popular posts?

    Thanks.

  4. Jennifer
    Member
    Posted 2 years ago #

    hey saleem_chohan,

    actually i got lucky. my hosting company started offering me double the CPU usage for the same price. i would have paid more for it, but they didn't even have an upgrade option back then. not only did i get more CPUs, but i didn't have to pay extra.

    i did permanently deactivate the popular posts and all in one seo pack, just because these plugins weren't doing me much good. i never found/used an alternative for these plugins. i also installed supercache to serve up cashed html pages, vs. loading and processing php files for every page load.

    i hope this helps!

Topic Closed

This topic has been closed to new replies.

About this Topic