Jump to content

Performance 1.6.0.9 with default theme. Very slow


Recommended Posts

Hi,

 

I hope someone can help me here.

 

My site is very slow. I use standard prestahop version 1.6.0.9 with the default theme.

 

We have just about 1000 products online, so really not too much.

 

 

 

First I thought it could be a server issue, so I changed to another, but the problem was not solved.

 

Actually another problem was added, since on a shared server with cpanel the provider refused

 

to change the memory settings and simple functions in the backend, like "show 1000 products"

 

resulted in a blank screen.

 

The website is secondhand-obchod.sk

 

Link to comment
Share on other sites

The first thing a shop owner should do (and then repeat over time) is to profile their shop.

 

This is accomplished by enabling the built in PrestaShop Debug Profiling:

 

open file config/defines.inc.php

 

change this line to true

define('_PS_DEBUG_PROFILING_', false);   //set to true too enable profiling

visit slow shop pages, collect the profiling data, analyze the data.

 

note: when enabled, all visitors will see this so turn off as soon as you collect the  data.

 

tip: back office-->advanced-->performance

my recommend optimal settings:

08.31.2014-09.19.png
http://screencast.com/t/A9Y3cxU5Sc

08.31.2014-09.20.png
http://screencast.com/t/55QbFxyjL

Link to comment
Share on other sites

tip: review of your shop, disable Geo Localization, the accuracy of maxmind IP is only 85%, that means up to 15% of valid visitors will not be able to shop.  This is best restricted by ship to and/or countries you allow at registration.  To confidently use geo localization you would need Geo Targeting Pro, I'd  recommend other module, but there are none. :)

Link to comment
Share on other sites

Thx, I will change that right away.
I have the config/defines.inc.php changed right now and there is really a lot of info.
 
 
Load time: 3442 ms
You'd better run your shop on a toaster
 
Execution Load time (ms) config 392 constructor 0 init 61 checkAccess 0 setMedia 8 postProcess 0 initHeader 0 initContent 2245 initFooter 513 display 222

 

Hook Processing displayHomeTab 1.70 Mb in 803 ms displayFooter 2.24 Mb in 512 ms displayLeftColumn 5.14 Mb in 462 ms displayHeader 25.64 Mb in 384 ms displayHome 0.68 Mb in 321 ms displayTop 3.70 Mb in 211 ms displayTopColumn 0.18 Mb in 82 ms displayHomeTabContent 0.69 Mb in 61 ms displayNav 0.26 Mb in 11 ms moduleRoutes 0.00 Mb in 0 ms displayProductDeliveryTime 0.00 Mb in 0 ms displayProductListReviews 0.00 Mb in 0 ms displayMyAccountBlockfooter 0.00 Mb in 0 ms DisplayOverrideTemplate 0.00 Mb in 0 ms displayProductPriceBlock 0.00 Mb in 0 ms displayBanner 0.00 Mb in 0 ms actionDispatcher 0.00 Mb in 0 ms actionFrontControllerSetMedia 0.00 Mb in 0 ms

 

Time (ms) 50.309

UPDATE `SHO_page_viewed`SET `counter` = `counter` + 1WHERE `id_date_range` = 114AND `id_page` = 53AND `id_shop` = 1

from /modules/statsdata/statsdata.php:107
from /classes/Hook.php:550
from /tools/profiling/Hook.php:60
from /classes/controller/FrontController.php:811
from /tools/profiling/Controller.php:233
from /classes/Dispatcher.php:373
from /index.php:28

 

 

Time (ms) 18.15

 

from /modules/pm_advancedsearch4/classes/AdvancedSearchClass.php:2935
from /modules/pm_advancedsearch4/pm_advancedsearch4.php:3952
from /modules/pm_advancedsearch4/pm_advancedsearch4.php:4264
from /modules/pm_advancedsearch4/pm_advancedsearch4.php:4360
from /classes/Hook.php:550
from /tools/profiling/Hook.php:60
from /classes/controller/FrontController.php:449
from /controllers/front/IndexController.php:37
from /tools/profiling/Controller.php:227
from /classes/Dispatcher.php:373
from /index.php:28

 

 

Time (ms) 17.727

 

rom /modules/pm_advancedsearch4/classes/AdvancedSearchClass.php:2978
from /modules/pm_advancedsearch4/pm_advancedsearch4.php:3952
from /modules/pm_advancedsearch4/pm_advancedsearch4.php:4264
from /modules/pm_advancedsearch4/pm_advancedsearch4.php:4360
from /classes/Hook.php:550
from /tools/profiling/Hook.php:60
from /classes/controller/FrontController.php:449
from /controllers/front/IndexController.php:37
from /tools/profiling/Controller.php:227
from /classes/Dispatcher.php:373
from /index.php:28

Link to comment
Share on other sites

Thank you for the advice. It seems one of the reasons is that I uploaded pictures which are too large

 

for the banners, slider, etc..  I assumed prestashop optimizes them in the right size.

 

Could you tell me if the pictures for the products are optimized in the right size?

 

The clue is in the details, anything else is just bumping around in the dark.

Link to comment
Share on other sites

The first thing a shop owner should do (and then repeat over time) is to profile their shop.

 

This is accomplished by enabling the built in PrestaShop Debug Profiling:

 

open file config/defines.inc.php

 

change this line to true

define('_PS_DEBUG_PROFILING_', false);   //set to true too enable profiling

visit slow shop pages, collect the profiling data, analyze the data.

 

note: when enabled, all visitors will see this so turn off as soon as you collect the  data.

 

tip: back office-->advanced-->performance

my recommend optimal settings:

08.31.2014-09.19.png

http://screencast.com/t/A9Y3cxU5Sc

08.31.2014-09.20.png

http://screencast.com/t/55QbFxyjL

 

What is the reason to set "Minify HTML" to no? Doesn't this speed up?

Link to comment
Share on other sites

speed up is a fairly complex subject,  does minify help, very little, very little bang for the buck...

 

having javascript bottom, helps 'significantly'.  :)

 

I agree with El Patron, on my installation I also have both minify HTML and compress inline javascript set to "no", because the page actually loads faster than if those were enabled.

 

You might get a better performance grade rating in Yslow if they're enabled, but in the end, only the user timing counts.

  • Like 2
Link to comment
Share on other sites

Thank you all for the responses.

 

I went down from Load time: 3442 ms to Load time: 1170 ms so a bit better, but still sitting on that toaster :-(

 

for the first page. Unfortunately once I enter category pages I am at Load time: 5124 ms

 

Changing the pictures sizes helped a lot, but also the search module I bought seemed to be a cause. I am now back

 

to the standard "Layered navigation block" and it seems to help.

 

What seems to make more problems now is the header...  any suggestions ?

displayHeader18.81 Mb in 414 ms

from /classes/Hook.php:550

from /classes/controller/FrontController.php:811

rom /tools/profiling/Controller.php:233
from /classes/Dispatcher.php:373

 

Unfortunately both the header and the left column had bad loading times.

 

- Is there a way to turn off the images on the categories in the default theme ?

 

- Use Rijndael with mcrypt lib. (you must install the Mcrypt extension) It should be faster and was activated on initial installation

but is the extension installed by default ? how to check this ???

 

- Regarding the settings I agree with prestashop superstar. I tested several combinations and this seems the fastest one.

 

- I am now hosted on a shared server. Does it make a signifigant difference to change to a VPS ? My provider told me that

the database would be faster accessable. Is this a notable diffence in speed, or just "very little, very little bang for the buck..." ?

 

Thanks again for the help :-)

  • Like 1
Link to comment
Share on other sites

Thx :-) It might solve an issue I have with google analytics. Even though i have prices and google shows them.

 

I keep getting failures.

 

Regarding my struggle for speed I found this post:

http://www.prestashop.com/forums/topic/306797-enabling-caching-slows-down-frontoffice-and-backoffice/?do=findComment&comment=1552359

 

At the bottom of the ADVANCED SETTINGS -> PERFORMANCE  page do not activate File System Cache.

 

Can someone tell me if Memcached, APC or Xcache speed me up ?

 

This post helped me at least to speed up the backend. 512M was not enough to even load my sitemap .. working fine now.

Link to comment
Share on other sites

Thx :-) It might solve an issue I have with google analytics. Even though i have prices and google shows them.

 

I keep getting failures.

 

Regarding my struggle for speed I found this post:

 

http://www.prestashop.com/forums/topic/306797-enabling-caching-slows-down-frontoffice-and-backoffice/?do=findComment&comment=1552359

 

At the bottom of the ADVANCED SETTINGS -> PERFORMANCE  page do not activate File System Cache.

 

Can someone tell me if Memcached, APC or Xcache speed me up ?

 

This post helped me at least to speed up the backend. 512M was not enough to even load my sitemap .. working fine now.

 

 

Hi, happy to hear you have improved shop performance.  

 

For cache or other questions please start new topic.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...