主题: /var/log/maillog里面一直有execute failed: MySQL server has gone away日志

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.6
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):MySQL
- 使用的 Linux/BSD 发行版名称及版本号:CentOS Linux release 7.2.1511 (Core)
- 与您的问题相关的日志信息:reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 128) line 172
====

邮件服务功能正常,/var/log/maillog里面一直有execute failed: MySQL server has gone away日志,请问这种情况是否正常?

Apr 12 15:34:20 l-mailserver2 amavis[24057]: (24057-14) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 128) line 172, <GEN18> line 33530.
Apr 12 15:34:20 l-mailserver2 amavis[24175]: (24175-05) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 128) line 172, <GEN18> line 13412.
Apr 12 15:34:20 l-mailserver2 amavis[23335]: (23335-20) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 128) line 172, <GEN18> line 53648.
Apr 12 15:34:20 l-mailserver2 amavis[24116]: (24116-09) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 128) line 172, <GEN18> line 23471.
Apr 12 15:34:20 l-mailserver2 amavis[24090]: (24090-10) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 128) line 172, <GEN18> line 26824.
Apr 12 15:34:20 l-mailserver2 amavis[24194]: (24194-03) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 128) line 172, <GEN18> line 6706.
Apr 12 16:13:48 l-mailserver2 amavis[24194]: (24194-04) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 128) line 172, <GEN18> line 6706.
Apr 12 16:13:48 l-mailserver2 amavis[24116]: (24116-11) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 128) line 172, <GEN18> line 23471.
Apr 12 16:15:22 l-mailserver2 amavis[24057]: (24057-15) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 128) line 172, <GEN18> line 33530.
Apr 12 16:16:18 l-mailserver2 amavis[24090]: (24090-13) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 128) line 172, <GEN18> line 26824.
Apr 12 16:18:21 l-mailserver2 amavis[23937]: (23937-19) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 128) line 172, <GEN18> line 50295.
Apr 12 16:19:41 l-mailserver2 amavis[24175]: (24175-06) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 128) line 172, <GEN18> line 13412.
Apr 12 16:30:51 l-mailserver2 amavis[24116]: (24116-13) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 128) line 172, <GEN18> line 23471.

回复: /var/log/maillog里面一直有execute failed: MySQL server has gone away日志

正常。服务器太闲了,amavisd 建立的 mysql 连接会话超时了,它自动重连了。啥事没有。