Webmastersite.net
Register Log In

Speeding up things

Comments on Speeding up things

babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Oct 30, 2008 - 7:55 AM:

Since moving up to v.5 things seem to have got slower. I have been in touch with LQ about this and one thing they suggested was getting rid of suphp - " Your using suphp which is nasty when it comes to resource usage." I can't really remember why you suggested changing to this, but believe I was having a problem when upgrading.

Do you think that it would help speed things up by removing suphp?

For instance, when I click suggest link it can take at least 5 seconds to load the page. :-(
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 30, 2008 - 8:21 AM:

I believe suphp increases the startup time of a page, making a super-fast script slightly slower. 0.1 seconds might become 0.07 seconds. 5 seconds will become 4.97 seconds. That speed isn't worth the headaches.

litespeedtech.com/support/f...orum/showthread.php?t=1306

For instance, when I click suggest link it can take at least 5 seconds to load the page. :-(

That relates almost entirely to the number of categories you have in your selector there. If you use the level based selector you'd find it quicker.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Nov 07, 2008 - 7:59 PM:

My server load is usually about 1 or less. Those times it does get above 1 my sites on V.5.0.x get ridiculously slow.

For instance, I upgraded this site yesterday, page http://www.thedogscene.co.uk/index.php?action=dis...

66 total queries
This page was created in 51.78 seconds
Memory used: 7151412 bytes
Server Status: time since last reboot is 71 days, 9:53, 1 user, load average: 5.39, 2.61, 2.08

I had a couple of people say they gave up trying to look at my site as it was just too slow.

[edit] Just tried the cache for guests. I logged out. cleared my cache, but I still have a problem.

www.thedogscene.co.uk/dog-i...dog-training-and-behaviour

60 total queries
This page was created in 25.43 seconds
Memory used: 7315164 bytes
Server Status: time since last reboot is 71 days, 10:28, 1 user, load average: 2.65, 1.66, 1.68
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 08, 2008 - 4:19 PM:

The first view of any page, or a later cache refresh view, will actually be slower than without the cache. If it says more than 20 queries you know it's a cache refresh.

There are only an average of 25 queries per page in a normally-configured WSN Links with all the switches on.

The occasional server spike may suggest a robot hitting the site.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Nov 08, 2008 - 9:57 PM:

Paul wrote:

There are only an average of 25 queries per page in a normally-configured WSN Links with all the switches on.

The occasional server spike may suggest a robot hitting the site.


It is not just the occasional server spike - my sites are constantly slow. I really love this script, but the speed of my sites is getting unacceptable. I have people telling me they can't view because it is so slow.

If other people's sites running on wsnlinks v.5 are not as slow then I have got to find out why mine are - is it the server, the script or because of my customisations?

I have been in contact with liquid web many times about the speed. They haven't been able to help and can't find anything wrong with the server. So I have tried a number of different things.

I have a test site up that I used to make sure v.5 upgrade went smoothly. I have just uploaded all the default templates and get the result for that same page (http://www.123club.co.uk/bedtime/index.php?action...)

35 total queries
This page was created in 12.32 seconds
Memory used: 6607928 bytes
Server Status: time since last reboot is 72 days, 11:14, 1 user, load average: 2.20, 1.61, 1.75


So the number of queries on my customised version is roughly twice as many BUT the speed is still unacceptable.

I don't know why I have such a high number of queries. I have tried removing customisations one by one, such as removing the top-list which produces the menu, removing a few conditionals, removing a cgi-script I have on it, etc. At no time did the total queries come below 54 and the fastest a page loaded was 10 seconds.

I am at a loss to know how to speed things up.

[edit] OK, I have been looking at other sites that run on wsnlinks and ALL run in a fraction of the time that my sites do. Although I only found a couple that were running on v.5 (and none were on the latest version). Quite a few were still on 4.0 series and I even found one still on v.3.# !

So this really leads me to wonder if it is in fact Liquid Web. I have to say that I find this forum slow to load most of the time too.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 09, 2008 - 8:18 PM:

http://links.webmastersite.net is on the latest version, on liquidweb, and I've never noticed it being slow. Haven't noticed this forum being slow either, though my other forum on the same server is and drags up the server load, because it has a lot of traffic.

I get the same or slightly better load time averages with 5.0 compared to 4.1. 4.1 is slower than 3.x I believe though it depends on what switches you have on.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Nov 10, 2008 - 12:09 AM:

So what do you think the answer is then?

What sort of things increase the number of queries? You said there was an average of 25, does that mean the 35 reported on my default templates is high? Obviously the 60 on my custom templates is high, but why?



What can I do?

[edit] Funny enough all sites are working ok this morning! TheDogScene.co.uk took just a couple of seconds smiling face BUT I can't risk them slowing down as much as they do. If they are not constantly slow I guess that means the server is the problem??
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 10, 2008 - 8:35 PM:

I don't know, I'd have to inspect all the settings and templates carefully and still might not know. The script is certainly slower than some.

I'd suggest you monitor how many guests are online at the slow times, and see if these are real people or not.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Nov 10, 2008 - 10:26 PM:

Thanks Paul.

I can't see that it is the templates as I restored all the original ones on a test site and it was still slow.

I do a lot of my work early in the morning (between abour 4am and 8am) when there are no guests on my sites as they are all in bed fast asleep <G> Yes it is so slow, sometimes the worst of the day.

I am considering trying another host and testing it. I have a couple of hosts in mind and they both have a money back guarantee, so if the site is not quicker on theirs I can quit. But lordy knows what I'll do then!
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#10 - Quote - Permalink
Posted Nov 11, 2008 - 5:46 PM:

0 members, 1 guest, 3.38 load and 3.52 seconds for you right now. That is odd, unless there's another site that has all the visitors.

My forums (also liquidweb) currently have 10 members, 25 guests, 2.10 load and 0.98 seconds for the same (online users) page.

The only likely server difference is I got a $5 RAM upgrade on my VPS basic plan a couple years back (so it's a $65/month plan). My per-page memory usage is actually higher than yours though, and I only needed the extra RAM for when there are 50+ people online with a ~1GB database of 500,000 posts.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
#11 - Quote - Permalink
Posted Nov 11, 2008 - 9:44 PM:

3.52 seconds is FAST for my sites!! I can't remember how much ram I have, and their plans have now changed.

TBH I believe I probably have a "Friday afternoon" server. When I first got it I had horrendous problems - After keeping on and on at LW they finally found some things wrong and said it had been set up wrong. But I have problems EVERY time I ask them to do something, and each time I keep on and on at them before they believe me, then they always say it hadn't been done correctly.

I am going to ask them to move me to another server. If they don't then I guess I shall have to find another host.

[UPDATE] Well, they're moving my stuff over to their latest server as I post this. Fingers crossed that that solves the problem!! If not, well..............
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
#12 - Quote - Permalink
Posted Nov 12, 2008 - 10:34 AM:

Well I'm on a new server and nameservers have propagated.

[sigh] I really don't know what is happening.

http://www.freewebbargains.com loaded home page in 1.81 seconds - which is indeed faster than it has ever been. However, 5 minutes later it took 13 seconds and I noticed 570 queries for the home page! I can't remember how many queries before, but I'm sure I would have noticed if it was that high.

I thought perhaps it may be the drop down I have which is a toplist of certain categories, so I removed that but it still shows 575 queries, yet all that was on the home page is a site map displayed as a menu, together with the default toplist - so how come 575 queries???

I'm at the point of nearly giving up ! sad
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#13 - Quote - Permalink
Posted Nov 13, 2008 - 12:42 AM:

If you turn on debug mode it'll show what the 575 queries are. Could be email queues.

I suppose I could add something to automatically send an email notification when there are more than 100 queries on a page.

My digest rewrite must be the problem with this latest version. You're getting digest insertions on every page load, it seems, thus countless times more digests than there should be.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
#14 - Quote - Permalink
Posted Nov 13, 2008 - 1:07 AM:

I have not received any digests, although my husband this morning has received loads. He deleted them so I don't know exactly how many but after I told him to save them he has 3 received this morning.

I also sent you an email earlier with my log-in details in case you need to look at the site.

I have a further strange happening on this server. I have a new site I am working on. This morning I was working on it and added something to the templates, uploaded it, saw it wasn't working correctly, removed a bit to check if it was that causing the probs, uploaded it and it worked great, so worked a bit more on the problem bit went to upload it and the site is now looking at the old server!

I am sure I am not going daft when I uploaded and saw changes earlier! Yes I did upload it to the new server and saw the changes!

Also, earlier when I saw the changes I was making it was loading in .53 secs, now it is loading in between 2 and 3 seconds.

[sigh] I'm jinxed!
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#15 - Quote - Permalink
Posted Nov 14, 2008 - 5:40 AM:

The digest problems were fixed in 5.0.21 -- at least, hopefully that was all of the problems this time.

The change I emailed you is giving me about a 30% speed improvement.

the site is now looking at the old server!

If you're talking about DNS, it can be inconsistent for a couple days after a change.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.