简体   繁体   English

服务器随机脱机-phpMyAdmin中的MySQL各种警报问题

[英]Server going offline randomly - Problem with MySQL various alerts in phpMyAdmin

Webapp goes offline randomly, the offline time is less than 2minutes. Webapp随机离线,离线时间少于2分钟。 (Because the downtime checker intervals are set for 2 min test and it isn't reporting this). (由于将停机时间检查器间隔设置为2分钟测试,因此未报告此情况)。 But users are complaining about unavailability. 但是用户抱怨不可用。

Getting various alerts in phpMyadmin doubts this is something related to a MySQL connection drop. 在phpMyadmin中得到各种警报的人怀疑这与MySQL连接下降有关。

Here are the alerts that are displayed in phpmyadmin: 这是在phpmyadmin中显示的警报: 来自phpMyadmin的警报

Configuration. 组态。

  • ubuntu 16.04LTS up to date ubuntu 16.04LTS最新
  • CloudFlare enabled 启用了CloudFlare
  • PHP version: 7.0.30-0ubuntu0.16.04.1 PHP版本:7.0.30-0ubuntu0.16.04.1
  • Apache 阿帕奇
  • MYSQL Server version: 5.7.23-0ubuntu0.16.04.1 MYSQL Server版本:5.7.23-0ubuntu0.16.04.1

Looking these values it seems your tables aren't indexed (properly). 查看这些值,似乎您的表未正确索引。 Without knowing enough about your application my best bet would be: 在不了解您的应用程序的情况下,我最好的选择是:

  • Restart MySQL server (this is a must) 重新启动MySQL服务器(这是必须的)
  • Monitor these values after restart 重新启动后监视这些值
  • Enable and examine slow query logs, thus identifying queries causing these issues 启用并检查慢查询日志,从而识别导致这些问题的查询
  • Run EXPLAIN on these queries and try to introduce proper indices 对这些查询运行EXPLAIN并尝试引入适当的索引

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

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