我的Wordpress网站上的高延迟 [英] High latency on my Wordpress Site

查看:162
本文介绍了我的Wordpress网站上的高延迟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试减少网站goldealers.co.uk上的延迟时间

I am trying to reduce the latency on site goldealers.co.uk

该站点的等待时间似乎在950毫秒至1500毫秒之间.

The site appears to have a latency of anywhere between 950ms and 1500ms.

我已检查:

  • 过程
  • RAM使用率
  • HTTP连接
  • Ping
  • 删除所有插件

删除插件没有什么区别.

Removing plugins doesn't make the slightest bit of difference.

该服务器是具有专用1.5GHz处理器和1GB RAM的VPS云服务器.

The server is a VPS Cloud Server with dedicated 1.5ghz processor and 1GB RAM.

我的问题:

  • 延迟是服务器/编程问题吗?
  • wordpress网站通常具有较高的延迟吗?
  • 我已经在Forbes.com(一个wordpress网站)上检查了延迟-这只有151ms的延迟!

我将很快进行缓存,添加过期的标头,可能使用CDN来存储图像等.但是,老实说,即使花费1秒甚至开始返回任何数据也没有意义.

I will soon be working on caching, adding expires headers, possibly using a CDN for images etc... but to be honest, there is no point if it takes over 1 second to even start to return any data.

非常感谢您提供的任何建议.

Any advice that you can provide is much appreciated.

推荐答案

您的分析和优先级是正确的-首先从基本页面加载时间开始,然后再优化其余的前端组件.

Your analysis and priority are correct - starting with the base page load time first, then later optimizing the remaining front-end components.

通常,默认情况下,WordPress网站交付HTML页面的速度可能会有些慢.您提到的1-1.5秒范围内的时间并不罕见. (作为比较,我运行的未经优化的WordPress网站在1-3秒范围内.)

In general WordPress sites by default can be a bit slow to deliver the HTML pages. Times in the range you mentioned 1-1.5 seconds are not uncommon. (For comparison, an unoptimized WordPress site I run is in the 1-3 second range.)

我将研究两个方面:

  • 该主机上的基本速度
  • 数据库查询速度

可能是您的虚拟主机没有非常快速的连接.您可以通过获取静态文件来对此进行测试(并消除方程式的WordPress部分).例如,在您的网站上,我可以在大约0.3秒内将 robots.txt 文件拉下.提供静态文件的速度大约是您的最低基准.

It could be that your webhost does not have a very fast connection. You can test this (and eliminate the WordPress part of the equation) by fetching a static file. On your site, for example, I can pull the robots.txt file down in about 0.3 seconds. The speed to serve a static file is about your minimum baseline.

接下来,我将研究MySQL数据库的查询速度. MySQL是在同一主机上还是在另一主机上提供? 调试查询插件可以向您显示正在执行的确切查询以及每个查询的性能.如果数据库查询似乎是问题所在,请数据库缓存已重新加载插件有时可能会有所帮助.它为频繁的数据库调用增加了一层额外的缓存.

Next I would look at the MySQL database query speed. Is MySQL being served on the same host or a different one? The Debug Queries plugin can show you the exact queries being made and performance for each. If the DB queries appear to be the problem, the DB Cache Reloaded plugin can sometimes be helpful. It adds an additional layer of caching for frequent DB calls.

此SO问题的答案中也有一些很好的建议:如何弄清楚为什么我的网站页面加载如此缓慢?

There are also some good suggestions in the answers to this SO question: How can I figure out why my site pages load so slowly?

这篇关于我的Wordpress网站上的高延迟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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