Zen Cart Logo
Forums / General Questions / Some pages are slow -- any idea why?

Some pages are slow -- any idea why?

Views: 1,426

Results 1 to 18 of 18
30 Jul 2013, 3:32 PM
#1
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Some pages are slow -- any idea why?

We're trying to troubleshoot the cause of our slow site. Google Analytics tells us the average product page speed is running around 5 seconds.

I've checked the page speed FAQ and parse/query times, which for one product ranged as follows:

Parse: 1.006 - 1.774
Query: .489 - .794

queries: 1101

Based on my understanding of the FAQ, this points to a slow server and not a database issue. Would that be a correct assumption?

The FAQ also references "very large" parse time - -but doesn't say exactly what that would be. Do my results indicate a large parse time? Is it time to look for a new host?

31 Jul 2013, 2:07 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Some pages are slow -- any idea why?

Have you an URL that we could perhaps peek at and see the issue to better help you? :lookaroun

31 Jul 2013, 11:11 AM
#5
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Re: Some pages are slow -- any idea why?

OK -- I'll leave this on for a bit.

31 Jul 2013, 11:47 AM
#6
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Some pages are slow -- any idea why?

jgold723:

OK -- I'll leave this on for a bit.

Thanks - this is what I am getting:

chickadee: Parse Time: 1.264 - Number of Queries: 1101 - Query Time: 0.55803435664368

finch: Parse Time: 1.199 - Number of Queries: 1189 - Query Time: 0.62510407896423

osprey: Parse Time: 1.086 - Number of Queries: 1189 - Query Time: 0.51170254393005

tern: Parse Time: 0.658 - Number of Queries: 531 - Query Time: 0.25184608319092

Looks like the 'culprit' are your attribute images. 'tern' has very few attributes compared to the other yarns.

Why? simply don't know - but here is a clue for the more experienced zenners.....

31 Jul 2013, 11:49 AM
#7
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Some pages are slow -- any idea why?

Loads fine here, too (clicking on Yarns)

Parse Time: 0.337 - Number of Queries: 145 - Query Time: 0.093631898910522

31 Jul 2013, 12:07 PM
#8
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Some pages are slow -- any idea why?

stevesh:

Loads fine here, too (clicking on Yarns)

Parse Time: 0.337 - Number of Queries: 145 - Query Time: 0.093631898910522

Yep, getting Parse Time: 0.524 - Number of Queries: 145 - Query Time: 0.11047480123901 on that page

BUT: no attribute images / queries.... on that page

too many queries on the other pages as per my post above - that seems to slow things down

31 Jul 2013, 12:22 PM
#9
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Re: Some pages are slow -- any idea why?

I thought it might be attribute images, but they're all optimized as much as possible. Is the actual number of images, or the size of the images. And I wondered about the number of queries - -but I wasn't sure as to how many constituted "too many"

31 Jul 2013, 12:23 PM
#10
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Re: Some pages are slow -- any idea why?

And yes -- it does seem to be the actual product pages that are slow, not the index pages.

31 Jul 2013, 12:24 PM
#11
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Some pages are slow -- any idea why?

jgold723:

........And I wondered about the number of queries - -but I wasn't sure as to how many constituted "too many"

I am not experienced enough to answer this - but, having said that - someone may come up with suggestions - don't think it is your server.

Sorry, can't help any further

31 Jul 2013, 12:31 PM
#12
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Re: Some pages are slow -- any idea why?

OK -- thanks for looking. If anyone else has any ideas, they'd be much appreciated. I've turned off the query display for now, but I can activate it again if someone needs me to. In the meantime, the figures noted above are pretty representative of what we are seeing.

31 Jul 2013, 1:07 PM
#13
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,081
Plugin Contributions:
56

Re: Some pages are slow -- any idea why?

Did you make sure that you

4 (b). In your individual attribute assignments, set "Apply Discounts Used by Product Special/Sale: No" (assuming that the options don't have cost associated with them); this will heavily reduce your parse times. 

The product you referenced has a ton of attributes (the colors) and if you don't configure each of the attributes as above they will really weigh down on the parse times.

31 Jul 2013, 2:10 PM
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Some pages are slow -- any idea why?

Is this image on your server? It appears to be missing and does waste a little time trying to find it ...
/store/includes/templates/quince/images/sub-header.gif

While I am not great at FireBug ... I use it to find slow downs via the Inspect Element with FireBug ...

With that turned on, I click on NET and then start to navigate a site ...

What it shows is when images/elements of the site are slow and/or missing and adding to the times as well as the sizes on things ...

You might try that on your site as some things are missing and others are just slow and you may be able to see your slow downs in order to correct them ...

31 Jul 2013, 5:52 PM
#15
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Re: Some pages are slow -- any idea why?

Thanks to all for the suggestions -- I'll start looking.

John

1 Aug 2013, 7:17 AM
#16
data_digger avatar

data_digger

Zen Follower

Join Date:
Jan 2009
Posts:
222
Plugin Contributions:
2

Re: Some pages are slow -- any idea why?

Your server generates the page in around 1.5 seconds which is waaaaay too much for an e-commerce site. I would consider anything above 0.5 seconds as slow. Both Your database server and web server take too much time generating the output (0.5-0.7 sec for database queries and rest for php execution) - which may mean that either Your hosting company has overloaded servers or (more probably) some contribution You installed takes too much time to run.

As for Google Analytics. What Google Analytics reports is not time Your server takes to generate page but time that on average takes visitors to load the page completely (html code, javascript files, css files and images). That's why this time is much higher. 5.0 sec is pretty bad and for You this is good news actually (when You fix performance issues with Your site You should see conversion ratio jump by 10%-100%).

Your visitors to see Your page need to download 855kb of data and make 106 requests. You should try to optimize Your site to load as quickly as possible (3.0 would be much better) and make as few requests as possible (20-30 is acceptable number - not great, just acceptable). There are techniques that can help You with that:

  • CSS sprites
  • data:uri images,
  • merging css & javascript files,
  • load javascript asynchronously.

Also images on the page are not as small as possible. At least 100kb of download could be saved if You would compress them properly. You also don't use caching, You mix loading of javascript with css, You don't have gzip compression enabled, Your css & javascript files are not minimized and You don't specify image dimensions. There are other optimizations that can be done too.

1 Aug 2013, 10:55 AM
#17
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Re: Some pages are slow -- any idea why?

Thanks -- I'll take a look at those.

Others have suggested CSS sprites, but I'm not sure how I'd use them to display the attribute thumbnails. Any suggestions?

1 Aug 2013, 11:36 AM
#18
data_digger avatar

data_digger

Zen Follower

Join Date:
Jan 2009
Posts:
222
Plugin Contributions:
2

Re: Some pages are slow -- any idea why?

My first shot would be to use value of attribute to create css class (like 'attribute_name_value') and define that class to show part of sprite. It ain't easy but can be done.