Overall Site Slowness...

A couple of months ago, we started seeing random slowness with pages both public and admin. No updates had been done. I had the site owner re-subscribe, and updated the forum and plug-ins. That seemed to clear up the issue for a couple of weeks, but performance has gone downhill again. I've tried rebuilding the caches but that didn't appear to help. So I've been trying to see if the mySQL indexes might need to be rebuilt, but there is little information on what indexes Xenforo needs.

CPU seems to be running about 20% of total available, and we have 1GB (of 16GBs) of memory free once the site is up and running. mySQL takes about 6 GBs itself. The forum is medium in usage size, 350 posts per day, 600 reactions per day based on the forum statistics. With approx 600+ active users per day.

I've run the site under google dev tools and 100% of the delay is server side, so it's not any UI issue.

We only have 7 plugins:
  • XD Collapsible Sections
  • First post edit time limit
  • tapatalk
  • Xenforo Enahanced Search
  • Xenforo Importers
  • Xenforo Media Gallery
  • Xenforo Redirects for VBulletin
Any ideas where to keep poking around would be appreciated.
 
Linux will always use nearly all of your memory regardless... if only on caches and stuff so not having free memory doesn't really mean anything.
 
Besides server-side optimisations, remember to check your legitimate traffic profiles. Several of my server optimisation clients I've done work for in the past week have had issues with one particular aggressive spider bot = Bytespider, from Bytedance from folks at Tiktok crawling the web for their search engine product. It ignores robots.txt and can pound sites very aggressively for crawling.

On the origin server side, I calculated up to 1,000+ crawl requests/second for days and weeks on end! It hit Xenforo proxy.php pretty hard, too. So, it will punish your PHP server configuration if left unchecked as not many server setups will out of the box have PHP capable of handling 1,000+ uncached PHP requests/sec

If your server is optimised, the Bytespider bot won't impact you too much, but if not, it can probably crash your server or slow it to a crawl very easily!

Think of it as a good load stress test of your server revealing any weaknesses in your current server configuration that you may need to tune up and address :D

Example of traffic filtered for just Bytespider useragent for past 30 days - Bytespider started pounding this server around September 2, 2023 - sharp drop after started creating custom Cloudflare WAF Firewall rules :) Server CPU utilisation dropped from pegged at 90+ % to 30-50% :D

cf-bytespider-traffic-30days-01.webp
 
Back
Top Bottom