admin.ajax.php requests is causing my website to slow down extremely

Posted in: Newspaper
Post count: 27

muslimskeptic.com is the affected website.

I checked the statistics and do see the increase in CPU seconds usage compared to the script executions and after checking through the access logs with live traffic, I noticed that the current theme of the website is generating spontaneous bursts of requests towards the admin-ajax.php script specifically on the home page of the website from various visitors and this immediately spikes the CPU and RAM usage of the server, here is one example from a few minutes ago of such a burst with 20 requests within a couple of seconds:

https://snipboard.io/yCvqfw.jpg

While all of these requests are being processed by the server, other ones get queued for execution, which leads to database queries that generally run in parts of a second to run for several seconds instead and resulting in the very regular slow loading of the website.

I tried looking around the web for a similar problem, however I could not find any additional information and this is likely some bug with the theme version and I would recommend checking this with the theme developers and how these requests can be controlled to avoid such bursts that use up the server resources. I tried to switch the theme version from 12.4 to 12.3.1 but there was no change. There are no conflicts with plugin too. I tried turning on cache as well for each block on tagdiv composer.

Please refer me to the technical team as soon as possible.

Post count: 97

Likely reasons:
1) You have articles loading through AJAX on Flex Block 1 elements. Make sure to enable caching 5 minutes or longer on those blocks. It’s in the bottom of filter or layout or so.
2) Make sure to run an object caching plugin such as REDIS or MemCached. It will store all those expensive lookups on disk in memory instead.
3) Serve your site through a better protocol such as http/2 or QUIC. It will help get the data quicker to the audience.
4) Look at Google PageSpeed Insights on how to further improve your performance score.

Good luck

Post count: 27744

Hi,

I saw you sent an email, our team will take a look.

Thank you!

Post count: 27

Thank you chrisfoxatx for your suggestions. Really appreciate your input. I can see that you have a large site as well from another post. Do you have any other suggestions on how to speed up the site?

Post count: 27

Hi problem is still not fixed…

Post count: 27744

Hi,

My colleagues will investigate by email, and tell you what can be done.

Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.