HF and Pages Loading Slow

That agree took more than 5 seconds to appear
5 seconds isn't out of the ordinary for normal international operation ... the delays I'm talking about are 30-60 seconds, even in-state (both the host and I are in TX).
 
The forum has never felt slow to me. Today it’s slower than usual, but not to the point of taking ages to load
 
Just some visual data -

1770145932569.png


While we're still experiencing numerous bad-actor attempted creations of accounts, the spam auditor is doing its job. The number of attempts is fewer than during previous periods of adverse performance.
 
I thought maybe it was created bot accounts from scrapers who couldn't do the free scraping any more and were just making accounts. Interesting how Nov '23 seems to be when it started.

--Patrick
 
About an hour ago, I did my routine jump on the forum open all the recently responded to threads since last visit and then filter through them. Went to grab my coffee and came back and everything was just stuck loading with 0 progress. Closed it all out and then reopened them and they were fine but might be related.

Edit: and actually now, just posting that, took like 5 minutes to appear.
 
Anyone experiencing slow pageloads today, or is it just me? In the past, this would have been indicative of high CPU load at the host due to bot scraping... but unregistered users are still blocked, and CPU load is around 2% when I'm noticing it happening... so I'm wondering if it's a ME thing, or if others are experiencing it as well...

I am super paranoid that all my monkeying with PHP issues yesterday might be having side effects

Having no issues.

Edit: as soon as post that, it took like 30 seconds to actually post, so disregard lol
 
Last edited:
Yeah, it's been loading slow for me for the last hour or more. I tried clearing my cache to see if it was on my end, but no go.
 
CPU load continues to be 2-3%, which is higher than the 0.5-1% it usually idles at, but nowhere near the 15-20% level that was causing the slowdowns previously. Still not sure what it is.
 
Access logs don't show anything out of the ordinary. Hits and pageloads are squarely in the middle of average. But whatever's happening, it's not happening to WHM but it IS happening to cpanel, which means it's focused on halforums.com itself....
 
Watching PHPAdmin's monitors also gleans no information. There's no appreciable difference in queries or traffic when the hiccups happen. >_<
 
Hit me hard on mobile. And no I haven’t started messing with the ssl.
 
I will say, if it helps, that when I'm on my phone, the loading problem fixes itself for a little while if I close the tab and reopen a new one.
 
Yeah, I'm having slowness issues too.

I'm blaming Bubbles.
Oh, sure, blame the minority, that's nice.
Scandalous! We avian-Belgians deserve respect and the benefit of the doubt too! Your can't prove that hairball in the server is mine! I demand trial by combat!
 
Well, I cannot, for the life of me, figure out what it was/is. Whatever the issue was, it didn't show up in any connection logs or error logs nor cause undue CPU usage or bandwidth spikes. According to every remote monitoring solution I can use (other than going through RAW UNFILTERED apache logs, which ain't NOBODY got time for), there's no way for me to track down wtf is going on.
 
I just had the site be entirely unreachable for me for about 20 minutes, but by the time I dug through my stuff to find the hosting logins, it'd come back up by itself...
 
I'm using Firefox and noticed that a lot of pages were loading slowly for me and found that it had been set to use "DNS over HTTPS" inside of FireFox, where it was set as "Increased Protection" and was using CloudFlare as the DNS provider. I turned that off by setting it to 'Off' and things have been a lot snappier - I am using quad9 DNS servers for my DNS anyway so I've got some protection and I'm thinking they're competing for DNS.
 
Just some visual data -

View attachment 54250

While we're still experiencing numerous bad-actor attempted creations of accounts, the spam auditor is doing its job. The number of attempts is fewer than during previous periods of adverse performance.
So, just to circle back to this..

1795214606231.png

Each Y axis line is 5 user registrations. Figures are daily averages. In early 2025 and late 2023-early 2024, we were having more than 50 user registrations a day (and I don't need to tell you all they were 99.9% bots).

But that number has lately, strangely enough, been falling off to pre-AI levels.

Is the great Scrapening over, dare I hope?

Even starting to wonder if we could... gasp... let unregistered guests read the forum again??
 
Noticed this morning the forum was struggling a bit. Rather than slam the doors shut on unregistered readers, I set Claude on the problem again.

Here's where we ended up:

Forum performance fixes — Dec 2

What happened:
After we reopened guest access, the server got overloaded. PHP was maxing out the CPU even though real member activity hadn't grown much.

Root causes:
  1. PHP was running as CGI. Every page request started a brand-new PHP process, loaded all of XenForo's code from scratch, and threw it away afterward. Each request was using about half a CPU core.
  2. OPcache wasn't installed at all, so PHP was recompiling XenForo's code on every request.

What I changed:
  • Installed PHP-FPM through EasyApache 4 and switched halforums.com to it in MultiPHP Manager. PHP now keeps a pool of worker processes running instead of starting one per request.
  • Installed and enabled OPcache (ea-php82-php-opcache). It keeps compiled code in memory. I raised its file limit from 4,000 to 20,000 so all of XenForo fits.
  • FPM pool settings (WHM → MultiPHP Manager → halforums.com): max children 20 → 32, because the pool was hitting its limit and requests were queuing. Max requests per worker 20 → 500.
  • PHP limits, set in cPanel's MultiPHP INI Editor, because the old .htaccess php_value lines don't apply under FPM: memory_limit 512M, post_max_size 16M, upload_max_filesize 10M.

Good to know:
  • PHP errors now log to ~/logs/halforums_com.php.error.log, not public_html/error_log.
  • Per-request CPU dropped from about 50% to about 5–15%.


And, yeah, it looks like the forum is now working noticeably faster.
 
Back
Top