最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

MySQL日志中CommunicationErrorsandAbortedConnec...

来源:动视网 责编:小采 时间:2020-11-09 14:03:28
文档

MySQL日志中CommunicationErrorsandAbortedConnec...

MySQL日志中CommunicationErrorsandAbortedConnec...:130504 2:14:32 [Warning] Aborted connection 13145 to db: tjss_pmanager user: xxxx host: 192.168.0.96 (Got an error writing communication packets) 130504 2:15:13 [Warning] Aborted connection 13146 to db: tjss_pmanager user: xxxx host: 192.1
推荐度:
导读MySQL日志中CommunicationErrorsandAbortedConnec...:130504 2:14:32 [Warning] Aborted connection 13145 to db: tjss_pmanager user: xxxx host: 192.168.0.96 (Got an error writing communication packets) 130504 2:15:13 [Warning] Aborted connection 13146 to db: tjss_pmanager user: xxxx host: 192.1


130504 2:14:32 [Warning] Aborted connection 13145 to db: tjss_pmanager user: xxxx host: 192.168.0.96 (Got an error writing communication packets) 130504 2:15:13 [Warning] Aborted connection 13146 to db: tjss_pmanager user: xxxx host: 192.1

130504 2:14:32 [Warning] Aborted connection 13145 to db: 'tjss_pmanager' user: 'xxxx' host: '192.168.0.96' (Got an error writing communication packets)
130504 2:15:13 [Warning] Aborted connection 13146 to db: 'tjss_pmanager' user: 'xxxx' host: '192.168.0.93' (Got an error writing communication packets)

如果你的sleep进程数在同一时间内过多,再加上其他状态的连接,总数超过了max_connection的值,那mysql除了root用户外,就无法再继续处理任何请求无法与任何请求建立连接或者直接down了。所以,这个问题在大负载的情况下还是相当严重的。如果发现你的mysql有很多死连接存在,首先要先检查你的程序是否使用的是pconnect的方式,其次,检查在页面执行完毕前是否及时调用了mysql_close(),


还有一个办法,你可以在my.cnf里面加上wait_timeout和interactive_timeout,把他们的值设的小一些,默认情况下wait_timeout的值是8小时的时间,你可以改成1个小时,或半个小时。这样mysql会更快的杀死死连接。防止连接总数超过max_connection的值。或者把max_connection的值设置的更大,不过这样显然不妥,连接的数量越多,对你服务器的压力越大。实际上那些连接都是冗余的,把它们尽快杀死才是上策。

官方网站有详细的解释: http://dev.mysql.com/doc/refman/5.1/en/communication-errors.html

文档

MySQL日志中CommunicationErrorsandAbortedConnec...

MySQL日志中CommunicationErrorsandAbortedConnec...:130504 2:14:32 [Warning] Aborted connection 13145 to db: tjss_pmanager user: xxxx host: 192.168.0.96 (Got an error writing communication packets) 130504 2:15:13 [Warning] Aborted connection 13146 to db: tjss_pmanager user: xxxx host: 192.1
推荐度:
标签: 日志 and error
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top