Slow index page

Locked

Views: 853

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
16 Jun 2010, 6:26 AM
#1
cindy2010 avatar

cindy2010

Zen Follower

Join Date:
Apr 2010
Posts:
100
Plugin Contributions:
0

Slow index page

I know this is an old topics, but my site (http://www.kingoflaptops.com/) just has very slow main index page (other pages are a little faster). The parse time normally will be 5+ seconds on first access (see bottom of the page).

Any idea of how can make it faster?

I already turned of unused sideboxes.
I tried the MagneticOne Performance module, and didn't see much improvement.
I also tried the Query Cache, didn't see much improvement either.
:-(

Thanks.

16 Jun 2010, 8:06 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Slow index page

You have 12 images that are approx 1X1inches and are from 25k to 50k in byte size

These only need to be 3-5k at that size as browser resolution is 72px/in

Use your graphic editor and scale these image down

Zen-Venom Get Bitten

16 Jun 2010, 3:32 PM
#3
cindy2010 avatar

cindy2010

Zen Follower

Join Date:
Apr 2010
Posts:
100
Plugin Contributions:
0

Re: Slow index page

But is that the main cause to have 5+ seconds Parse Time? I think the parse time is the time the server takes to generate the HTML, not the time that browser takes to load the page, right?

17 Jun 2010, 1:22 AM
#4
cindy2010 avatar

cindy2010

Zen Follower

Join Date:
Apr 2010
Posts:
100
Plugin Contributions:
0

Re: Slow index page

Hello,

Does anyone know where is the code for featured product center box on the main page? I want to find the place where it gets data, and add a small "cache" to it to improve speed (basically, instead of querying the db each time, I just save the results to a file and next time simply reload it).

Thanks a lot!

17 Jun 2010, 1:31 AM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Slow index page

Initial load
Parse Time: 9.074 - Number of Queries: 154 - Query Time: 0.216407294952

Refresh load after cached - - and thi is what you should be concerned with
Parse Time: 1.237 - Number of Queries: 72 - Query Time: 0.0753858488922

For that low number of querries I can only therorize that you are on "Cheap" mass marketed hosting

Zen-Venom Get Bitten

17 Jun 2010, 2:42 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Slow index page

kobra:

Initial load
Parse Time: 9.074 - Number of Queries: 154 - Query Time: 0.216407294952

Refresh load after cached - - and thi is what you should be concerned with
Parse Time: 1.237 - Number of Queries: 72 - Query Time: 0.0753858488922

For that low number of querries I can only therorize that you are on "Cheap" mass marketed hosting

I agree. The problem there is not with your database or queries.
The problem is with processing the PHP and the data received from the database. And with such huge differences between database and PHP processing times, clearly your server's CPU is overloaded and not up to the task.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

17 Jun 2010, 2:46 AM
#7
cindy2010 avatar

cindy2010

Zen Follower

Join Date:
Apr 2010
Posts:
100
Plugin Contributions:
0

Re: Slow index page

Too bad! I am on the iPage.com
I was told iPage was good. :-(

17 Jun 2010, 2:48 AM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Slow index page

If you hit your site in a fresh browser, meaning you don't already have your site cached in your current browser ... you will see your site is a dog ... :eek:

Hit it again and it is fast ...

Parse Time: 0.727 - Number of Queries: 73 - Query Time: 0.0475416560822

Hit it again and it may be fast or again a dog ...

Parse Time: 2.019 - Number of Queries: 73 - Query Time: 0.10844516423

The initial hit may be slowed down in trying to figure out the ip_address and translate it ... this could be due to your hosting provider not managing this information correctly for fast translation ...

One test is to turn off the feature in the Configuration ... Sessions ...

IP to Host Conversion Status
Convert IP Address to Host Address

Note: on some servers this can slow down the initial start of a session or execution of Emails

If this is the case, turning that off will avoid the slow initial hit ...

Also speaking to your hosting provider may help to have this fixed ...

Next, check the Tools ... Server Info ... in your Admin and see if it displays the Load averages ...

If so, try viewing this several times over 5 minutes and see how much fluctuation there is to the times ... they should be very low ... high times means an overloaded server ...

My vote is a poorly configured server and an overloaded one to boot ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!