我的服务器出现性能问题,加载速度慢,页面没有加载等,所以我通过SSHlogin后运行“top”命令。 我注意到CPU一直保持高达40%的上下跳动,实际上没有人访问该网站。 我有其他(不太强大)的服务器,以1-5%的rest心率,所以我知道有什么地方是错误的。 我login到MySQL,启用通用日志logging,这是我发现:
event_time Descending 1 user_host thread_id server_id command_type argument 2014-09-20 04:35:07 [root] @ localhost [] 46833 0 Connect root@localhost on 2014-09-20 04:35:07 [root] @ localhost [] 46834 0 Connect root@localhost on 2014-09-20 04:35:04 [root] @ localhost [] 46832 0 Connect root@localhost on 2014-09-20 04:35:03 [root] @ localhost [] 46829 0 Connect root@localhost on 2014-09-20 04:35:03 [root] @ localhost [] 46830 0 Connect root@localhost on 2014-09-20 04:35:03 [root] @ localhost [] 46831 0 Connect root@localhost on 2014-09-20 04:34:58 [root] @ localhost [] 46828 0 Connect root@localhost on 2014-09-20 04:34:57 [root] @ localhost [] 46827 0 Connect root@localhost on 2014-09-20 04:34:48 [root] @ localhost [] 46826 0 Connect root@localhost on 2014-09-20 04:34:41 [root] @ localhost [] 46823 0 Connect root@localhost on 2014-09-20 04:34:41 [root] @ localhost [] 46824 0 Connect root@localhost on 2014-09-20 04:34:41 [root] @ localhost [] 46825 0 Connect root@localhost on 2014-09-20 04:34:39 [root] @ localhost [] 46822 0 Connect root@localhost on 2014-09-20 04:34:37 [root] @ localhost [] 46821 0 Connect root@localhost on 2014-09-20 04:34:36 [root] @ localhost [] 46820 0 Connect root@localhost on 2014-09-20 04:34:33 [root] @ localhost [] 46819 0 Connect root@localhost on 2014-09-20 04:34:30 [root] @ localhost [] 46818 0 Connect root@localhost on 2014-09-20 04:34:29 [root] @ localhost [] 46815 0 Connect root@localhost on 2014-09-20 04:34:29 [root] @ localhost [] 46816 0 Connect root@localhost on
从字面上来说,像SQL每分钟处理100个“连接”命令一样。 我确定这是导致我的性能问题。 但是我的问题是,我不知道这些命令是从哪里来的,或者我怎么去追踪源代码。 有任何想法吗?
获得BruteForced,或只是简单地停留在一个连接循环,可能更可能是一个错误的应用程序,你安装了什么?