TinyPortal

Development => Support => Topic started by: iceblock on November 04, 2007, 02:43:19 PM

Title: slow website (Resolved)
Post by: iceblock on November 04, 2007, 02:43:19 PM
My website takes around 18secs to load, which is quite unacceptable.

I tried optimizing table under admin > forum maintenance. This seems to fix the problem... for admin login only (0.2 - 0.3 secs). For guests and non-admin users, it still takes that long to load.  ???
Title: Re: slow website
Post by: G6Cad on November 04, 2007, 02:47:40 PM
That is something most shared hosts have issues with.
So if you have a shared or even free hosting you have to accept it or change host. It sounds no fun at all, i know, but you have to contact them and tell them about your problem, and hope they have heart enough to make it better for you.

From our part there is nothing we can do or help you with except telling you to remove as much of your content you have to make the site load faster, a lot of RSS and scripts and outside siteurl calles will just make your load time even worse.

So these 2 things is the only support we can give you  :-\

Also i cant even connect to your site, eather the link is wrong, or the server offline
Title: Re: slow website
Post by: iceblock on November 04, 2007, 09:18:51 PM
Thank you for looking into this. Sorry, typo in link fixed in original post.

I'm using a free subdomain, but I'm hosting on my own server. The page loaded normally until last 2 days. I don't recall making any changes (to the code or theme) for the last few weeks.

And the weird part is, logging in as admin, the page loads in 0.2 sec, but normal or guest users takes forever to load. This even happens when I'm accessing via internal network.

But accessing to other packages under the directory where TP + SMF is installed (if you click 'DKP' or 'Raid Signup', the page load is normal too. But 'Home' or 'Forum', it takes forever (for non admin login). If it's my server or network, everything should take about the same time to load???

That's why I thought the problem might be with TP or SMF and maybe you can shed some lights what might be the problem?
Title: Re: slow website
Post by: Lord Anubis on November 04, 2007, 11:39:37 PM
It is just something that has to do with the host...The only advice I can give is don't use too many images (plain) and make sure you have used the forum maintenance tools in the admin center to optimize all your tables and such "action=maintain"

Other than that you are stuck  :-\
Title: Re: slow website
Post by: BHkai on November 05, 2007, 12:45:05 AM
Here is some more info.

Tracing route to 123-243-17-28.static.tpgi.com.au [123.243.17.28]
over a maximum of 30 hops:

  1     2 ms    <1 ms    <1 ms  192.168.1.1
  2     6 ms     7 ms     7 ms  10.136.98.1
  3     6 ms     7 ms     7 ms  ip24-248-104-170.br.br.cox.net [24.248.104.170]
  4     8 ms     7 ms     7 ms  24.248.104.126
  5    18 ms    19 ms    17 ms  dalsbbrj01-ae0.r2.dl.cox.net [68.1.0.142]
  6    76 ms    77 ms    77 ms  64-129-224-162.static.twtelecom.net [64.129.224.162]
  7   218 ms   217 ms   217 ms  66.162.129.150
  8   218 ms   218 ms   218 ms  syd-pow-ibo-iri-port-channel-1.tpgi.com.au [202.7.162.142]
  9   238 ms   238 ms   238 ms  123-243-17-28.static.tpgi.com.au [123.243.17.28]
Title: Re: slow website
Post by: iceblock on November 05, 2007, 03:34:30 AM
Quote from: Lord Anubis on November 04, 2007, 11:39:37 PM
It is just something that has to do with the host... (snipped)

If it's to do with host, why does the time to load page when logged in as administrator takes only 0.2sec? But takes more than 15sec for guests and non-admin logins? (tested from the same pc, same browser, also tested both from external and internal network.)

Yes, tried optimized table. Before doing this, logged in as admin takes as long to load. After optimization, page load for admin user went back to normal. However, no improvement for no login or other logins.

In addition, admin uses the same theme as the rest. So it seems it's not the contents, images etc.

Quote from: BHkai on November 05, 2007, 12:45:05 AM
Here is some more info.

Tracing route to 123-243-17-28.static.tpgi.com.au [123.243.17.28]
over a maximum of 30 hops:
(snipped)

The problem is reproducible when accessed via internal network, ie not going through the internet so it's direct connection, no hops.

If it's slow network, the problem should persist throughout the whole site. As stated in my previous post, it's slow only when accessing the TP+SMF pages. Perfectly normal loading if you click 'DKP' and 'Raid Signup' link from menu.
Title: Re: slow website
Post by: Zetan on November 05, 2007, 03:47:24 AM
I accessed your site, not more than 30 minutes ago.. it took 18 seconds to load then.. and takes: Page created in 0.272 seconds with 20 queries. to load now after clearing the cache. This does not suggest SMF/TP to me, rather a server problem.

Any problems with DoS attacks?
Title: Re: slow website
Post by: iceblock on November 05, 2007, 03:52:14 AM
 :up:

ok, problem fixed. After going through admin options, this is what was found:

In admin > Layout and Options, 'Disable hostname lookups?' was unchecked. Check it and viola!

My server was probably not configured correctly. But this fix the problem!  :coolsmiley: I'm not technical so maybe someone can explain why.

Hope this helps someone who has similar problem.
Title: Re: slow website
Post by: Zetan on November 05, 2007, 03:54:56 AM
I'm pleased you found the problem.. as you can see, many things can cause a problem after changing what seems to be an innocent setting. Thanks for posting the outcome.

I've marked this topic Solved.
Title: Re: slow website (Resolved)
Post by: falguni1 on November 05, 2007, 05:05:15 AM
my also
'Disable hostname lookups?' is unchecked.

by default

but I dont have slow loading
wot to do

y to check it wot is the use
Title: Re: slow website (Resolved)
Post by: lebisol on November 05, 2007, 04:09:19 PM
where is your DNS record stored? It could be the registrar...is your site accesiible any better by IP?
Title: Re: slow website (Resolved)
Post by: Abfall on November 11, 2007, 05:58:57 AM
Quote from: iceblock on November 05, 2007, 03:52:14 AM
In admin > Layout and Options, 'Disable hostname lookups?' was unchecked. Check it and viola!
Hope this helps someone who has similar problem.

Excellent.  Thanks very much.  Mine was incredibly slow loading when not logged as Admin as well.

Logged in as admin, page time was :
...Page created in 0.063 seconds with 18 queries.
Logout of admin, drops to:
...Page created in 32.302 seconds with 17 queries.
After 'Disable hostname lookups' is checked off, the guest/non-logged pages are:
...Page created in 0.058 seconds with 14 queries.

ty again!