服务区监控高负载异常进程到一个日志的简单shell

来源:互联网 发布:rt809h编程器 编辑:程序博客网 时间:2024/05/16 08:35
#!/bin/bashTODAY=$(/bin/date +%Y%m%d)top -bn 1 | head -15 >> top.txt.${TODAY}top -bn 1 |grep java |head -n 3 |awk '{print $1}' |xargs ps -p  |more >> top.txt.${TODAY}
0 0
原创粉丝点击