从12月1日开始,晚上论坛高峰期和其他时间出现一条sql语句,如下:
| SELECT authorid FROM forum_thread where tid=4927867 ORDER BY tid DESC |
| 7012508 | cnbbsx2 | 10.1.1.177:58666 | newbbs | Query | 0 | | SELECT authorid FROM forum_thread where tid=4929401 ORDER BY tid DESC |
| 7012509 | cnbbsx2 | 10.1.1.171:22965 | newbbs | Query | 0 | | SELECT authorid FROM forum_thread where tid=4927887 ORDER BY tid DESC |
| 7012510 | cnbbsx2 | 10.1.1.171:22966 | newbbs | Query | 0 | | SELECT authorid FROM forum_thread where tid=4929392 ORDER BY tid DESC |
| 7012512 | cnbbsx2 | 10.1.1.170:22794 | newbbs | Query | 0 | | SELECT authorid FROM forum_thread where tid=4929415 ORDER BY tid DESC |
| 7012513 | cnbbsx2 | 10.1.1.171:22972 | newbbs | Query | 0 | | SELECT authorid FROM forum_thread where tid=4929458 ORDER BY tid DESC |
| 7012518 | cnbbsx2 | 10.1.1.170:22796 | newbbs | Query | 0 | | SELECT authorid FROM forum_thread where tid=4927844 ORDER BY tid DESC |
| 7012519 | cnbbsx2 | 10.1.1.170:22798 | newbbs | Query | 0 | | SELECT authorid FROM forum_thread where tid=4929277 ORDER BY tid DESC |
| 7012521 | cnbbsx2 | 10.1.1.171:22985 | newbbs | Query | 0 | | SELECT authorid FROM forum_thread where tid=4929450 ORDER BY tid DESC |
| 7012522 | cnbbsx2 | 10.1.1.171:22990 | newbbs | Query | 0 | | SELECT authorid FROM forum_thread where tid=4927806 ORDER BY tid DESC |
造成访问高峰期数据库连接跑满,目前设置的1000个连接数(内存使用控制在38G内.)打开论坛出现连接数满无法打开论坛的情况,每天的带宽和PV情况都在造成的范围内,
以下是nagios监控mysql连接数画图的一些情况: