Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #234088

    Hello!

    Thank you for making a great theme!

    I really enjoy the Ajax functionality but am worried about something that just occurred with the themes /wp-admin/admin-ajax.php page. I was working on everything as usual and went to do a preview and all the sudden the site crashed. I checked a few other sites on my server and they were down as well. I checked my GPU clock and it shows taht /wp-admin/admin-ajax.php used over 4 CPUs, and it seems like it happened in almost not time at all.

    I know your team is not responsible for hosting issues, but this is excessive resource wasting and since I used Media Temple on the grid server, this could actual cost me money if it keeps happening. What could be the cause of this and what can I do to avoid resources being used excessively in Enfold?

    I’m a big fan of the theme just need to get these kinks worked out before I can rate it!

    Thank you!

    Admin-Ajax.php

    /wp-admin/admin-ajax.php

    #234304

    Hey addwebtoday!

    Thank you for using the theme. I hope you’re doing great.

    Can you please give us a link to the website? Please increase the wordpress php memory limit to at least 128M. Refer to this link:
    http://dailyblogging.org/wordpress/increase-wordpress-memory-limit/

    Cheers!
    Ismael

    #234310

    Hello Ismael,

    Thank you for answering the few support tickets I have floating right now!

    Link: http://sc.preview.addwebtoday.com/

    I’m not an expert at those types of modifications but will contact my host for some support. I’ve never had this type of issue with a site before and after reviewing all the sites on my shared hosting service, the /wp-admin/admin-ajax.php page used up my CPU in a day then all of my sites had in the past week combined. It was a really odd spike. My hosting said that something could be pinging the host repeatedly like a bot, but that wouldn’t make much sense either.

    Thanks again for taking a look at this!

    #235071

    Hey!

    You can try using this plugin to see what is using admin-ajax so much: http://wordpress.org/plugins/query-monitor/

    The theme does use a lot of ajax in the background when modifying pages but it shouldn’t be causing that much of an issue on the host. I use Media Temple for my dev site and for most of my clients as well and have not had anything like that when using Enfold so far.

    Try also deactivating all active plugins in case there is an issue there.

    Best regards,
    Devin

    #237357

    Hey Devin,

    Thank you for your response and the plugin recommendation. I have installed it and will be watching.

    I’m not sure what to look for with this plugin but as I wait for results to come in: as I indicated earlier, the

    /wp-admin/admin-ajax.php

    file was causing the ping as Media Temple lists the page that is causing the CPU usage. Will this plugin provide more details as to what in the file is causing this CPU usage? Furthermore, the reason I posted was that I received a warning from Media Temple in regards to this exact page/file (/wp-admin/admin-ajax.php). Since you are familiar with Media Temple, take a look at this screen shot. What about this the ajax file could be causing this?

    Thanks again for taking a look at this! I’m a big fan of the theme. and this issue is important both for my work and for my server.

    • This reply was modified 10 years, 1 month ago by addwebtoday.
    #237369

    I did a bit of searching just now on the general issue and it seems like its related to the new heartbeat api. See: http://wordpress.org/support/topic/admin-ajaxphp-being-called-from-admin-pages-causing-db-connection-issues

    With either a plugin or setting something is pinging saves extremely often and causing the issue on the server. Another user mentioned that simply leaving a page open that was using the pulse writing ability cause major server issues.

    It isn’t specific to MT but using the function included further down in that topic and disabling heartbeat may help you in this case.

    #241844

    Devin,

    I’ve looked into the heart beat and have modified the file in order to folllow protocol in disabling the functionality. I have also added a PHP file to help decrease server load times on my server side and it has helped knock down the “Slow Queries” a few seconds Reported in the query report plugin recommended by Enfold mods.

    With that being said, the amount of queries has slowly been increasing on the site. It is also consistently spiking around midnight for no particular reason. I’ve been monitoring closely and the behavior is starting to seem borderline malicious on the theme side. I’ve spoken with Media Temple and they went as far as to say that this might actually be some type of bot or ping trying to gain access to the server through these files. I’ve never encountered this with any theme from ThemeForest.net and have bought over 25+ themes. I also use AJAX on other themes with out ever dealing with this server load stress.

    What’s going on with the theme .php files guys? I love this theme, but I am encountering some alarming experiences as I go further down the rabbit hole. Mind you, modifying the heartbeat api itself is a fairly involved bandage for a theme related issue as it’s not server side.

    Link to example screen shot: http://sc.preview.addwebtoday.com/slow-queries-enfold/

    If this continues to happen at an expedited rate, it could effect my standings with my hosting company. I’ve never been forced off of using a Theme before. I modified the heartbeat but the issue persists. Please let me know what is next to get this squashed.

    Feel free to let me know if you have any questions

    Thank you,
    -AddWebToday

    #241846

    I’ll tag the topic for Kriesi but personally this has never happened for me. I currently have 10 clients all using Enfold and all hosted through my company account with Media Temple. Sites range from under 500 hits a month to the thousands without the issues you are currently having.

    On my dev site alone I have something like 5k pages created and have left bbPress, WooCommerce as well as other plugins running with lots of data for the past year 2 years.

    With 23k copies of the theme out in the wild if it were causing server instability issues across the board we should have and continually be getting reports of it hourly. If you have any plugins running you can try deactivating them and keeping an eye on things as well.

    #262904

    Devin,

    I appreciate your response, but as a mod, your experience as a developer is black and white to your theme customers. I worked through the heartbeat API and all your other recommendations, and keep coming back to the notion that the theme is the issue, as I have multiple themes running with no instances of these exact problems. They are specific to Enfold.

    Thank you for letting me know that you have everything figured out, but I will continue to project screen shots onto the support forum until I get an answer that says more than “well it works for me”. Granted, your response is detailed and relevant which I appreciate, and thank you for notifying Kriesi, but I also have downloaded dozens of themes and never had these issues either. I believe it is various theme related issues in the .PHP that is causing these unnecessary calls.

    Frankly speaking, it’s evident that the the PHP calls, HTTP requests, and other redundant calls are keeping the site from loading even on the most basic of pages, and it still crashes mobile browsers. I really didn’t think it would take this much effort on the forum to get some exact answers. Let me know if you need access to provide better insight

    Link to various server related issues triggered by Enfold: http://www.schneidercentre.com/example

    #263361

    Hey!

    Which current site is having the issue and can we see it live? I know WooCommerce was recently having issues with the heartbeat calls (https://kriesi.at/support/topic/admin-ajax-php-killing-the-site/) but this is still the only topic I know of with returning issues.

    Best regards,
    Devin

    #264683

    Hi Everyone,

    I had a similar problem with admin-ajax.php and traced it to a stats plugin called wp Slimstat. As soon as I deactivated this plugin the problem disappeared.

    Hope this helps.

    #264702

    Hi!


    @derek62
    thanks for sharing! :)

    Regards,
    Yigit

    #299243

    Feel free to close this looking at isolating this issue. Will put in another ticket once I have more information.

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Server Stressed by Admin-Ajax.php’ is closed to new replies.