http://rimuhosting.com/howto/memory.jsp
# create a memmon.sh script that tracks the current date, memory usage and running processes
cat << EOF > /root/memmon.sh
#!/bin/bash
date;
uptime
free -m
vmstat 1 5
ps auxf --width=200
if which iptables 2>&1 > /dev/null; then
iptables -L | diff iptables_default - | awk '{print "IPTABLES: " $0}'
iptables -L > iptables_default
else
echo "IPTABLES MISSING"
fi
dmesg | diff -u dmesg_default - | grep '^+' | awk '{print "DMESG:" $0}'
dmesg > dmesg_default
EOF
chmod +x /root/memmon.sh
# create a cronjob that runs every few minutes to log the memory usage
echo '0-59/10 * * * * root /root/memmon.sh >> /root/memmon.txt' > /etc/cron.d/memmon
/etc/init.d/cron* restart
# create a logrotate entry so the log file does not get too large
echo '/root/memmon.txt {}' > /etc/logrotate.d/memmon
分享到:
相关推荐
1. Misconfiguration of Memory Pools:内存池的misconfiguration是最常见的内存问题之一。它可以导致Java应用程序中的内存使用率不均匀,导致应用程序崩溃。 2. Excessive use of Finalizers:Finalizer是一种特殊...
PART II: USAGE GUIDE Chapter 5 Process Monitor Chapter 6 ProcDump Chapter 7 PsTools Chapter 8 Process and diagnostic utilities Chapter 9 Security utilities Chapter 10 Active Directory utilities ...
在《Oracle TimesTen In-Memory Database Troubleshooting Guide 11g Release 2 (11.2.2)》中,用户可以找到关于解决TimesTen数据库问题的详尽指南。这份文档旨在帮助管理员和开发者诊断并解决在使用TimesTen时可能...
Cisco Press 2002 Troubleshooting2
Citrix Troubleshooting Guide
This book will be a practical guide showing how to fix real-life issues related to installation, memory, Dockerfile syntax, connection, authorization, networking and so on in Docker. This book will ...
IBM Open source course for JVM troubleshooting it's a course for medium and experienced java developer
Cisco.Press.CCNP.Practical.Studies.Troubleshooting.eBook CCNP Troubleshooting操作指南 受上传限制,分为2个压缩包
Troubleshooting PostgreSQL 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或...
To gain these benefits, however, team members need common troubleshooting skills and practices.In DevOps Troubleshooting: Linux Server Best Practices, award-winning Linux expert Kyle Rankin brings ...
《Python库:troubleshooting-framework-1.3.0.3.tar.gz详解》 在信息技术领域,Python作为一种强大且易学的开发语言,被广泛应用于各种项目中。它丰富的库生态系统是其的一大亮点,其中“troubleshooting-...
Troubleshooting BGP A Practical Guide to Understanding and Troubleshooting BGP 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
Troubleshooting Docker 英文无水印原版pdf pdf所有页面使用FoxitReader、PDF-XChangeViewer、SumatraPDF和Firefox测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国...
oracle rac troubleshooting,了解rac的基本处理流程等
Examine memory usage by FRS. List the application programming interface (API) and version number for FRS. Poll immediately, quickly, or slowly for changes to the FRS configuration.