ElkArte Community

General => Site Feedback => Topic started by: radu81 on January 11, 2015, 11:10:59 pm

Title: site slow
Post by: radu81 on January 11, 2015, 11:10:59 pm
I don't know if it's just me but today the time request for loading a page here is more than five seconds

This is forum index: Page created in 5.034 seconds with 8 queries.

Do you have "Miserable user" addon here installed?  ;D  ;D  ;D Am I  so miserable?  :D

=== edit ===
now it's fast, the time for loading a page is 0,0X sec
Title: Re: site slow
Post by: Allan on January 11, 2015, 11:37:42 pm
I have been having the same issue all day, slow then fast.
Title: Re: site slow
Post by: emanuele on January 11, 2015, 11:46:07 pm
hmm...  odd.
I thought it may have been the hives (minified css/js), but the files are all dated 2014, so it should not be that.
I didn't see any slowdown, but I have been around only randomly today.
Title: Re: site slow
Post by: Spuds on January 12, 2015, 01:55:34 am
Was slow for me as well ... not sure why, just was a bit lagging today.
Title: Re: site slow
Post by: meetdilip on January 12, 2015, 12:27:10 pm
Fortunately, I missed it :P
Title: Re: site slow
Post by: TE on January 12, 2015, 03:10:02 pm
Not sure what happened, probably a temporary issue with the host system..
Title: Re: site slow
Post by: meetdilip on January 12, 2015, 03:16:29 pm
May be checking the logs can help.
Title: Re: site slow
Post by: emanuele on January 13, 2015, 08:08:10 pm
Just for the record, it looks like I hit some slow-loading pages myself today ("now", a couple of 10 seconds and this topic 5 seconds).

I wonder if it may be worth adding a log of slow queries/"actions".
Title: Re: site slow
Post by: Spuds on January 13, 2015, 08:17:13 pm
Kind of feels like a network issue, maybe watch net load times to see if the requests are being delayed.

Of course it never hurts to collect data in the slow query log, could be something around that we need still need to tune.
Title: Re: site slow
Post by: emanuele on January 13, 2015, 08:53:58 pm
hmm... frequently it works like that:
* load a page => 5 seconds
* reload "immediately" => 0.04 seconds
* reload again => 5 seconds
* reload "immediately" => 0.04 seconds
etc.
The timeline from chrome is attached.
Title: Re: site slow
Post by: Spuds on January 13, 2015, 09:18:24 pm
Yup thats what I'm seeing as well:

// Just the html, no js, css, images, etc ... inital request
DNS resolution 0ms
Connecting: 0ms
Sending: 0ms
Waiting: 5207ms
receiving: 3ms
Title: Re: site slow
Post by: meetdilip on January 14, 2015, 10:43:43 am
The site is slow for me now. Not sure if it is just ElkArte.net
Title: Re: site slow
Post by: TE on January 14, 2015, 03:11:26 pm
The server is a vps. It seems to me there is an overload on the host system partially.  The guest  hasn't been changed for quite some time. Maybe I should contact the datacenter team? Let's inspect some more days in order to give them some more details regarding the time the vps is affected.
Title: Re: site slow
Post by: Spuds on January 14, 2015, 03:25:48 pm
Makes sense, I did a quick look at the vps load and DB status and it was all cool, so its something that is happening after the DNS hand-off to the sever and it giving that to the vps container.

Whats interesting is I'm often seeing the 5 Sec wait, like something blocked/timing out.  Did it for me just now.
Title: Re: site slow
Post by: emanuele on January 14, 2015, 03:28:09 pm
Fine! :D
Can we use this topic to track them?

If so, I just have the page loading in 5.092 seconds.
Honestly, these 5 seconds are quite odd in how repeatable they are, it really look just like something stopping the load for exactly 5 seconds...

ETA: or what teh Spuds said! :P
Title: Re: site slow
Post by: TE on January 14, 2015, 05:35:02 pm
I have disabled hostname lookup. Let's see if it fixes the delay..
Title: Re: site slow
Post by: Spuds on January 15, 2015, 01:51:18 am
Not to jinx us, but since you turned that off I have not had a slowdown ... interesting !
Title: Re: site slow
Post by: Allan on January 15, 2015, 03:12:40 am
I haven't had any issues after that was turned off.
Title: Re: site slow
Post by: TE on January 15, 2015, 06:27:21 am
Not to jinx us, but since you turned that off I have not had a slowdown ... interesting !
hostname lookup is cached for 600 seconds, that's why the first request ( most likely not cached) is soo slow. After a quick check the related function host_from_ip() in Subs.php checks:
Code: [Select]
@shell_exec('host...
then
Code: [Select]
@shell_exec('nslookup...
then
Code: [Select]
@gethostbyaddr(...
I'd bet that both shell_exec calls fail.. Maybe should we switch the order of hostname lookups and start with the gethostbyaddr() ?
Title: Re: site slow
Post by: ahrasis on January 15, 2015, 11:52:16 am
I'd bet that both shell_exec calls fail.. Maybe should we switch the order of hostname lookups and start with the gethostbyaddr() ?

I will try this as well.
Title: Re: site slow
Post by: radu81 on February 27, 2017, 10:55:28 pm
There is something wrong with the home page (http://www.elkarte.net/), it takes several seconds to be loaded and sometimes is not displayed correctly, the right blocks are not displayed. It's somehow random, now seems working fine, but today I saw it 2-3 times loading very slow. Try it also in incognito mode.
The forum is loading fine
Am I the only one with this problem?
Title: Re: site slow
Post by: Spuds on February 28, 2017, 01:34:15 am
Had not noticed anything, but I don't tend to land on that page.   It's possible that fetching the "latest" data (commits etc) for display was/is causing a page block, maybe GitHub is slow today
Title: Re: site slow
Post by: emanuele on February 28, 2017, 05:01:59 pm
Yep, that's what I was thinking as well.
Title: Re: site slow
Post by: emanuele on March 31, 2018, 06:14:07 pm
It's a few days that randomly I get page loads way out of the average like this one few moments ago:
Page created in 13.742 seconds with 18 queries.
It almost feels like it's recaching too frequently the CSS/JS hives...