高级管理文档

💡 云策文档标注

概述

本文档介绍了WordPress网站监控的核心概念,包括正常运行时间监控、性能监控和性能分析,旨在帮助开发者通过系统化监控及时发现和解决网站问题。

关键要点

  • 正常运行时间监控:通过服务器级别或定期URL检查确保网站响应正常,建议结合内部和外部监控工具。
  • 性能监控:监控页面加载时间、最慢平均事务等指标,并检查慢日志以识别问题查询或请求,保持网站稳定。
  • 性能分析:使用New Relic、AppDynamics或Tideways等工具诊断性能瓶颈,分析慢函数、外部HTTP请求和数据库查询。

📄 原文内容

Site monitoring systems and services can notify you when your site isn’t working properly. They can often correct any minor issues, or help you to do so before they become major issues.

Uptime Monitoring

Uptime monitoring is traditionally done at the server level or by checking one or more URLs on the site at regular intervals to make sure they are responding properly. A combination of internal and external uptime monitoring is ideal for users, and there exist a variety of software and services to handle this for you.

Performance Monitoring

While a site’s services may be responding, to a user, a site being “up” means more than this to them. Performance monitoring is similar to uptime monitoring, but also takes note of certain metrics that could indicate trouble. Metrics like “page load time” and “slowest average transactions” should be monitored and reported regularly to help keep you ahead of performance issues. Monitoring slow logs for problematic queries or requests can also help keep user sites stable. MySQL, PHP-FPM, and others provide options to capture these for monitoring.

Performance Profiling

It is best practice to use performance profiling tools, such as New Relic, AppDynamics or Tideways, to diagnose the performance bottlenecks of your website and infrastructure. These tools will give you insight such as slow performing functions, external HTTP requests, slow database queries and more that are causing poor performance.