Re: Intermittent Loading Slowdowns
Reply #1 –
For "random" slowdowns I may think of two reasons:
1) a new caching of styles and scripts (javascripts),
2) a new caching of hostname lookups.
From the screen you are posting looks like the hostname lookup.
It's a bit strange the 30 seconds because the hostnames should be stored for 600 seconds, but... it may also be you are not using cache and it relies maybe on some server-side caching of the DNS record.
You may disable the hostname lookup in admin > config > server > general.
Re: Intermittent Loading Slowdowns
Reply #3 –
I see the same problem actually. Hostname lookup has been disabled and just a pretty simple Apache setup.
If I haven't done a particular request for a while it takes about 4 to 5 seconds to generate the page according to Elk's own page load time output. After that it goes back to about 0.03 seconds until some unknown timeout or something.
Re: Intermittent Loading Slowdowns
Reply #4 –
Yes, that's exactly what I'm getting. I'm on Nginx, so it seems it's definitely an Elk issue.
I've not been seeing the issue since having disable hostname lookup, but I'll continue testing.
Re: Intermittent Loading Slowdowns
Reply #6 –
I'm live and an admin. It is not restricted to admin pages though. I've seen it on post, who, and unread frequently.
Re: Intermittent Loading Slowdowns
Reply #7 –
And sadly it's not readily repeatable for me. I can't just not view a page for five minutes and know it will be slow every time.
Re: Intermittent Loading Slowdowns
Reply #10 –
Refreshing it with "Show queries" open now. I've turned hostname lookup back on, but I'm having trouble replicating the issue now. It's super-weird because this issue has been happening for weeks, but now I can't reproduce it. PHP-FPM's slowlog isn't showing anything either now :S I even ran a long test with Seige on 1 concurrent user and not a single peak over 1 second after about 5 minutes running.
I'll keep going. I've not done anything I can think of that would have fixed it.
Re: Intermittent Loading Slowdowns
Reply #11 –
I've seen this problem basically since installing elk beta. It's very random. I'm sure it will show up again.
Ema is there a timeout on the css/js cache that will cause it to redo them even if they haven't changed?
Re: Intermittent Loading Slowdowns
Reply #12 –
I understand the issue now. Elkarte is failing to find my hostname using the host or nslookup commands on the system, and is falling back to the PHP function "gethostbyaddr()" which is extremely slow. It finds many users' hostnames fine though, which is why none of my testers have come across it. Seems if you're using a common ISP, it has no problem.
I've simply completely disabled hostname requests from the admin panel. I can't think of any functionality that I lose?