MySQL生产服务器遇到来自debian-sys-maint用户的高stream量
我在生产环境中运行Debian 7上的MySQL服务器。 我最近(或多或less是偶然的)看看了可以在phpMyAdmin中显示的服务器统计信息。 我看到MySQL服务器通过回答大量的SELECT查询来产生大量的传出stream量。 一些例子: 据phpMyAdmin,我每小时约19,000个连接 每小时大约有7,779,5个SELECT语句 我每小时生成约160 MB的传出stream量 你可能会认为这对生产环境来说不算太多。 问题是,这个服务器上使用这个MySQL主机的应用程序还不太stream行,所以它们产生这么多的stream量是不切实际的。 为了找出导致这么多查询的原因,我启用了MySQL服务器的详细日志logging,以及在重新启动服务器1分钟后我看到的是这样的: Time Id Command Argument 150306 7:14:13 1 Connect debian-sys-maint@localhost on 1 Quit 2 Connect debian-sys-maint@localhost on 2 Quit 3 Connect debian-sys-maint@localhost on mysql 3 Query select @@version_comment limit 1 3 Query show variables like 'datadir' 3 Quit 4 Connect debian-sys-maint@localhost on 4 Query […]