为什么我的wordpress网站这么慢,我停机时间这么长? [英] Why is my wordpress website so slow and am I having so much downtime?

查看:134
本文介绍了为什么我的wordpress网站这么慢,我停机时间这么长?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Yslow和PageSpeed来找到原因,但是我似乎无法弄清为什么我的博客 http://www.fotokringarnhem.nl 有时加载速度非常快(我猜是缓存的文件),而其他时候加载时间大约需要10秒或更长时间.

I have used Yslow and PageSpeed to find the cause, but I can't seem to figure out why my blog http://www.fotokringarnhem.nl sometimes loads blazing fast (cached files I guess), and other times takes about 10 seconds or longer to load.

我在共享服务器上,但是共享服务器上的其他网站没有类似的问题.

I am on a shared server, but haven't had problems like this with other websites on shared servers.

我正在使用cloudflare加速博客,以加快速度,但无济于事.

I'm using cloudflare to speed up my blog to speed things up, but to no avail.

我错过了什么吗?

最近30天的pingdom报告(另请参见 http://stats.pingdom.com/hseaskprwiaz ):

Pingdom reports of last 30 days (also see http://stats.pingdom.com/hseaskprwiaz):

  • 平均响应时间:7.620毫秒
  • 最慢平均值:18.307毫秒
  • 最快平均值:4.237毫秒
  • 正常运行时间:96,24%

编辑1 : 来自basicstate.com

Edit 1: from basicstate.com

诊断

+ dns +连接 -要求 -响应

+dns +connect -request -response

所以我猜想它在请求上失败了.选择缩小范围?

So I guess it fails on the requests. Options to narrower it down?

编辑2 :

我使用了 P3(插件性能分析器)来确定导致问题的插件最多的加载时间.原来,用户访问管理器造成了大约60%的加载时间,所以我删除了它.

I used P3 (Plugin Performance Profiler) to determine which plugins caused the most loadtime. Turns out that User Access Manager caused about 60% of load time, so I deleted it.

这可以做些什么,我现在可以减少超时时间,但是仍然需要很长的时间才能在屏幕上弹出任何东西.

This did something, I now get way less time outs, but it still takes a long time for anything to popup on the screen.

我使用了插件 SQL监视器,并确定有82个查询正在执行请求大约需要10秒钟!!!

I used the plugin SQL monitor and determined there are 82 queries being executed on request which takes about 10 seconds!!!!

推荐答案

使用P3插件 并使用本文进一步优化您的网站: http://andbreak.com/articles/guide- speed-wordpress/

Use the P3 plugin and use this article to further optimize your website: http://andbreak.com/articles/guide-speed-wordpress/

当所有其他方法都失败时,请尝试切换提供商

when all else fails, try switching providers

修改

事实证明,删除所有自动保存的页面和帖子备份以及概念是关键.这极大地减少了我查询服务器的时间. 现在以闪电般的速度! 这是最近几天的报告: 正常运行时间:99,21% 总体平均值:3.322毫秒

Turns out that deleting all automatically saved backups of pages and post as well as the concepts was the key. This dramatically cuts my query time to the server. Now at lightning speeds! Here is the report from the last few days: uptime: 99,21% overall average: 3.322 ms

对于WP有一个有用的插件,它还可以限制帖子和页面的自动保存和概念的数量:版本控制 顺便说一下,结果并非一帆风顺.花了一天时间生效.

There is a usefull plugin for WP to also limit the number of autosaves and concepts for posts and pages: Revision control Results weren't instant by the way. Took a day to take effect.

基本状态结果(当我在12月11日删除修订和概念时(显然不确定哪个),清楚地显示了改进.)

Basicstate results (clearly showing the improvement when I deleted the revisions and concepts on the 11th of 12th (not sure which)).

date          uptime       dns   connect   request      ttfb      ttlb
2012-09-18     98.97     0.031     0.047     0.047     0.353     0.475
2012-09-17    100.00     0.031     0.047     0.047     0.389     0.810
2012-09-16    100.00     0.029     0.045     0.045     0.342     0.499
2012-09-15     93.81     0.029     0.045     0.045     0.739     1.035
2012-09-14     98.97     0.053     0.068     0.068     0.387     0.565
2012-09-13    100.00     0.058     0.074     0.074     0.499     0.853
2012-09-12     95.00     0.030     0.046     0.046     5.994     7.024
2012-09-11     96.97     0.051     0.096     0.096     9.707     9.949
2012-09-10     73.15     0.027     0.043     0.043     6.765     6.952
2012-09-09     43.48     0.027     0.121     0.121     3.652     3.724
2012-09-08     31.82     0.028     0.045     0.045     2.757     2.867
2012-09-07     71.93     0.026     0.042     0.042     5.917     6.091
2012-09-06     60.49     0.027     0.043     0.043     4.590     4.751

这篇关于为什么我的wordpress网站这么慢,我停机时间这么长?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆