• Resolved danigomu

    (@danigomu)


    Hello !!

    I am having problems caused by high CPU resource consumption in my hosting provider for a few weeks. Just see …

    https://ibb.co/r0ZHptP
    https://ibb.co/Cn6kcB0

    The overall performance and speed of WordPress Backend and Frontend has dropped considerably and the CPU limit is exceeded simply by editing a post or page on my website.

    Monitoring the website exhaustively we have seen that there are many long YASR requests to admin-ajax.php that may be causing a server overload. Like that one:

    /wp-admin/admin-ajax.php?action=yasr_load_vv&post_id=2
    
    {"yasr_visitor_votes":{"number_of_votes":73,"sum_votes":338,"stars_attributes":{"read_only":false,"span_bottom":false}}}

    Please, could you please check this? If you need anything from me, I will be happy to help. I can send you logs and more information that I can’t send here.

    Thank you very much, best regards.

    • This topic was modified 3 years, 3 months ago by danigomu.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor dudo

    (@dudo)

    Hello!

    That action is active when the “Load results with AJAX?” is enabled.
    You can disable that setting, and YASR will print data directly to html.

    The downside of this method is that, when a caching plugin is installed, this breaks YASR, because it will show always the old data and also break the nonce needed for the validation.

    So, if you want to use caching plugin + YASR, you must enable that setting.
    When that setting is enabled the server works as a pure API that just return a simple JSON response.
    This is pretty much a standard in modern web development.

    The downside of this method is that, if you have an huge quantity of ajax requests at the same time, this can slow down the server (mostly in shared hosting)

    I’m working in this days managing browser caching, (e.g. https://stackoverflow.com/questions/17104265/caching-a-jquery-ajax-response-in-javascript-browser) but this will require a lot of tests.

    Hope this helps!

    .

    Thread Starter danigomu

    (@danigomu)

    Hi Dario, thanks for the reply.

    Indeed, I am using the Litespeed cache plugin so I have to have the AJAX active.

    The problem is not so much the number of request to admin-ajax, it is that this request is very slow to execute, and I don’t have more requests to admin-ajax than this one.

    If you need more information, I can send you detailed reports of my site requests that YASR is involved in.

    Is there a YASR + Litespeed cache configuration where all of this is optimized?

    Thanks

    Plugin Contributor dudo

    (@dudo)

    The problem is not so much the number of request to admin-ajax, it is that this request is very slow to execute, and I don’t have more requests to admin-ajax than this one.

    This is really weird, seems like more an hosting problem to me.
    Anyway, feel free to contact me through my website to better help you ??

    Thread Starter danigomu

    (@danigomu)

    Ok @dudo I’ll text you through your site. See you,

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘High server CPU usage and performance issue’ is closed to new replies.