Jump to content

Load time: 15781 ms You'd better run your shop on a toaster


Recommended Posts

Hi Gang,

 

Recently I just had a site that I'm working on get "REAL" slow and I'm not able to get it to speed back up. The back-end is especially slow. 

 

domain: http://mybrandbaby.com

phpinfo: http://mybrandbaby.com/php-info/phpinfo.php

 

I have it _PS_DEBUG_PROFILING_ set to true and so that you guys can take a look I've taken it out of maintenance mode. All 3rd party modules and overrides disabled. 

 

Here is PrestaShop™ 1.6.0.13 profiling information. 

 

Load time15291 ms
You'd better run your shop on a toaster

Execution Load time (ms) config 108 constructor 0 init 37 checkAccess 0 setMedia 19 postProcess 0 initHeader 9 initContent 15106 initFooter 1 display 12

 

Hook processing29 ms / 2.54 Mb
9 methods called in 8 modules

Hook Processing displayBackOfficeHeader 1.57 Mb in 20 ms actionAdminControllerSetMedia 0.97 Mb in 8 ms displayBackOfficeTop - Mb in 0 ms moduleRoutes - Mb in 0 ms actionAdminPerformanceFormModifier - Mb in 0 ms displayBackOfficeFooter - Mb in 0 ms displayAdminForm - Mb in 0 ms actionAdminPerformanceControllerBefore - Mb in 0 ms actionDispatcher - Mb in 0 ms displayAdminPerformanceForm - Mb in 0 ms

 

Memory peak usage25.0 Mb

Execution Memory (Mb) Total (Mb) config 17.54 17.6 constructor - 17.6 init 2.47 20.1 checkAccess - 20.1 setMedia 1.31 21.4 postProcess - 21.4 initHeader 0.79 22.2 initContent 1.83 25.0 initFooter 0.05 25.0 display 0.84 25.0

 

Total cache size in Cache class0.41 Mb
Smarty cacheenabled
Smarty compilationnever recompile
SQL Queries44 queries in 31 ms
Included files: 90 (2.21 Mb)
Global vars : 0.02 Mb
  • $_LANGADM ≈ 9k
  • $_SERVER ≈ 9k
  • $_COOKIE ≈ 3k

TIA,

Don

Edited by stnadmin (see edit history)
Link to comment
Share on other sites

Hello,

I had the same issue after i added some products to my catalog. I assumed the horrible slow down was a module. It was taking 20-25 secs to place an item in the cart. Contacted hosting site and they tested my install against an earlier install on a older server. BIngo! old server was fast as i remembered it being. I googled module issues and read more than one about shipping modules USPS UPS and FEDEX being the problem.

I had just installed the USPS mod before i added those products. Disabled the mod, and bam full speed.

I have now made my own shippers using the prices from USPS website. works great by weight and is full speed with hundred of products now entered.

I hope it helps you.

Link to comment
Share on other sites

  • 2 weeks later...

The sites that I'm having issues with performance do not have the modules installed. 

I've also noticed I cannot log into my addons account from the backoffice. 

It appears that initContent is always a very high number and the vast majority of the time being spent is in refreshing metadata on modules. 

 

This is happening to all of my Prestashop installs on my server no matter what the version. 

Any insight as to why this is happening? I'm guessing that it has to do with something on my server or firewall that has changed. 

Link to comment
Share on other sites

We've been trying to figure out what has been slowing down the backoffice performance and think we may have it but I would like to know everyone's thoughts as well as any ideas on how to resolve it.

It appears that Prestashop does some checking on the site for information and it is either getting blocked or it is blocking us. I'm not sure which but I'm pretty sure this is what is causing the performance issue.

Doing a tracepath

[mybrand@rack httpdocs]$ tracepath api.addons.prestashop.com
1: rack.stnhost.com (192.168.101.0) 0.109ms pmtu 1500
1: 108.166.101.130 (108.166.101.130) 1.001ms
1: 108.166.101.130 (108.166.101.130) 0.925ms
2: core6-aggr1201a-2.ord1.rackspace.net (23.253.15.184) 1.454ms
3: corea-core6.ord1.rackspace.net (50.56.6.132) 1.192ms
4: 173.203.0.130 (173.203.0.130) 1.587ms
5: be2-mspe4.ord30.rackspace.net (10.25.0.109) 2.705ms
6: chi-b21-link.telia.net (80.239.160.49) 3.530ms
7: dls-b21-link.telia.net (62.115.135.41) 24.507ms
8: if-12-6.tcore2.NYY-New-York.as6453.net (216.6.99.45) 42.554ms asymm 11
9: po10-20g.ar3.CDG2.gblx.net (67.16.130.221) 113.910ms asymm 12
10: cr0-ge-5-1-3-th2.ALIONET.NET (77.72.90.238) 117.966ms asymm 17
11: cr0-ge-5-1-7-rdb.ALIONET.NET (77.72.89.102) 109.511ms asymm 13
12: no reply
13: po2-cr0-rdb.alionis.net (94.100.175.14) 103.753ms asymm 14
14: no reply
15: ve111-po1-ar1-vbo.alionis.net (94.100.175.6) 118.506ms
16: no reply
17: no reply
18: no reply
19: no reply
20: no reply
21: no reply
22: no reply
23: no reply
24: no reply
25: no reply
26: no reply
27: no reply
28: no reply
29: no reply
30: no reply
31: no reply
Too many hops: pmtu 1500
Resume: pmtu 1500
[mybrand@rack httpdocs]$ ping -c1 api.addons.prestashop.com
PING api.addons.prestashop.com (91.240.109.19) 56(84) bytes of data.

--- api.addons.prestashop.com ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 10000ms

Link to comment
Share on other sites

Ok I figured out the issue and it was totally on us. 

 

Someone had placed an IP block in the iptables that was not allowing communication between the sites and prestashop to happen. This resulted the slowdown because Prestashop wanted to update the config/xml/ files. That is why the "initContent" was always so high. 

 

The real clue that there was a connection issue that was causing the problem and not a server power problem was the fact that I could not log into my Addons account from the backoffice and also there was no news feed from prestashop displaying on the control panel. 

 

I just wanted to let everyone know what my issue was so if they experience something like this themselves. 

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

Ok I figured out the issue and it was totally on us. 

 

Someone had placed an IP block in the iptables that was not allowing communication between the sites and prestashop to happen. This resulted the slowdown because Prestashop wanted to update the config/xml/ files. That is why the "initContent" was always so high. 

 

The real clue that there was a connection issue that was causing the problem and not a server power problem was the fact that I could not log into my Addons account from the backoffice and also there was no news feed from prestashop displaying on the control panel. 

 

I just wanted to let everyone know what my issue was so if they experience something like this themselves. 

 

 

How dit you solved it ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...