linux 监控内存变化脚本
来源:互联网 发布:linux下snmp配置文件 编辑:程序博客网 时间:2024/06/14 05:22
#!/bin/sh
while true
do
# date +%Y-%m-%d/%H:%M:%S >>mem.txt
# ps aux | grep yourgrogram | awk 'NR==1{ print $5/1024/1024,$6/1024/1024}' | cat >> mem.txt
echo `date "+%Y-%m-%d~%H:%M:%S"` `ps aux | grep yourgrogram | awk 'NR==1{ print "\t"$5/1024/1024"g""\t"$6/1024/1024"g"}'` >> mem2.txt
#sleep 1h
sleep 3s
done
while true
do
# date +%Y-%m-%d/%H:%M:%S >>mem.txt
# ps aux | grep yourgrogram | awk 'NR==1{ print $5/1024/1024,$6/1024/1024}' | cat >> mem.txt
echo `date "+%Y-%m-%d~%H:%M:%S"` `ps aux | grep yourgrogram | awk 'NR==1{ print "\t"$5/1024/1024"g""\t"$6/1024/1024"g"}'` >> mem2.txt
#sleep 1h
sleep 3s
done
0 0
- linux 监控内存变化脚本
- linux服务器内存监控-shell脚本
- Shell脚本监控Linux系统内存使用率
- 开发监控Linux 内存 Shell 脚本
- centos nagios监控linux主机监控内存脚本
- 内存使用率监控脚本
- Linux 系统CPU,内存,负载,IO监控脚本
- 利用shell脚本来监控linux系统的内存
- Linux---服务器CPU 内存 磁盘 监控SHELL脚本
- 利用shell脚本来监控linux系统的内存
- 利用shell脚本来监控linux系统的内存
- 利用shell脚本来监控linux系统的内存
- 利用shell脚本来监控linux系统的内存
- Linux 内存监控shell脚本和定时器设置
- 监控数据流基准变化python脚本
- Linux监控日志动态变化
- Linux操作系统文件变化监控
- linux iostat监控脚本
- android 中使用webView的坑(个人整理,非网上Copy别人的,只是总结而已)
- Android Fresco图片框架内部实现原理探索
- scrapy爬虫出现Forbidden by robots.txt
- linux(centos)搭建SVN服务器
- 色 彩 RGB 值 对 照 表
- linux 监控内存变化脚本
- Linux信号量 sem_t简介
- Android中的屏幕适配问题
- Android APK 反编译
- 监听手机软键盘弹起与关闭
- 阿里云安装tomcat
- PyQt5教程-19-组合框
- 自定义注解之源码注解(RetentionPolicy.SOURCE)
- Phalcon Volt模板之过滤器 (Filters)