简体   繁体   English

非常慢的prestashop

[英]Very slow prestashop

sorry if my question isn't written the proper way. 很抱歉,如果我的问题写得不正确。 Please let me know what i can do to help you help me :) 请让我知道我能做什么来帮助您帮助我:)

I'm working on a Prestashop website that suddently started to become very slow on everypages (front and back). 我正在Prestashop网站上工作,突然每个页面(正面和背面)的速度都变得非常慢。

I noticed that it is the request that take long time to be processed. 我注意到这是需要很长时间才能处理的请求。 Once the server start sending response, it is fast. 服务器开始发送响应后,速度很快。

When i go to www.mywebsite.com it is very slow for processing request. 当我访问www.mywebsite.com ,处理请求的速度非常慢 When i go to www.mywebsite.com/phpmyadmin it is fast 当我转到www.mywebsite.com/phpmyadmin 时,速度很快

do you have any idea ?? 你有什么主意吗 ??

prestashop 1.6.1.6 prestashop 1.6.1.6

Linux my_host_name 3.10.23-xxxx-std-ipv6-64 #1 SMP Tue Mar 18 14:48:24 CET 2014 x86_64 GNU/Linux Linux my_host_name 3.10.23-xxxx-std-ipv6-64#1 SMP周二3月18日14:48:24 CET 2014 x86_64 GNU / Linux

I have the same problem some time ago with a shop when I installed an script for detect country from IP address. 前段时间,我在一家商店安装了用于从IP地址检测国家/地区的脚本时遇到了同样的问题。 This script was executed in every request so until script finish the rest of the page does not load. 该脚本已在每个请求中执行,因此在脚本完成之前,页面的其余部分将不会加载。 Anyway, you can active Debug Profiling to know witch part of your page is delaying the response. 无论如何,您可以激活Debug Profiling来了解页面的某些部分正在延迟响应。

Go to /confif/defines.inc.php and set _PS_DEBUG_PROFILING_ to true . 转到/confif/defines.inc.php并设置_PS_DEBUG_PROFILING_true Then reload your page and you will see at the bottom a detailed info about every loaded part of your entire shop page. 然后重新加载您的页面,您将在底部看到有关整个商店页面中每个已加载部分的详细信息。

Good luck. 祝好运。

Use a tool like http://tools.pingdom.com and http://www.bytecheck.com to check what is loading, the TTFB, wait times etc. 使用类似http://tools.pingdom.comhttp://www.bytecheck.com之类的工具来检查正在加载的内容,TTFB,等待时间等。

TTFB and WAIT times. TTFB和WAIT时间。

check you are using apache 2.4 check using php FASTCGI enable php-fmp enable smarty cache enable CCC (we do all except js as it created issues) in our case, mysqli was faster than PDO. 在您的情况下,请检查您使用的是Apache 2.4是否使用php FASTCGI启用php-fmp启用smarty缓存启用CCC(除了js会造成问题,我们会做所有其他事情),mysqli比PDO快。 enable Mysql slow logs for 1 sec+ use slow log to see if long DB waits, and optimise the query if possible and check index usage. 启用Mysql慢速日志1秒钟以上,使用慢速日志查看是否长时间的DB等待,并在可能的情况下优化查询并检查索引使用情况。

If long total page load time, I would use the above tools as well a firefox/chrom dev tools and look for long loading items. 如果总页面加载时间较长,我将使用上述工具以及firefox / chrom开发工具,并寻找长时间加载的项目。 3rd party services, ad network, analytices, social network buttons etc 第三方服务,广告网络,分析工具,社交网络按钮等

would also be nice to see what "slow" is. 看看“慢”是什么也很好。 in future post test results from tools above. 将来通过上述工具发布测试结果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM