2) free –m
it will display the memory status
3)if a perticular user is causing a high server laod then use "ps U username": it will display the process that are running by the user .
4) Then you can take action against that user.
4) netstat -an |grep :80 |wc -l :
Show how many active connections there are to apache (httpd runs on port 80)
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort –n
it will display the no of connections form a certain ip
6)if there is MYSQL taking cpu usage then check for mysql status
mysqladmin -u root processlist
check for the databases and suspend that user if any database is using high resources.
7)check /tmp if there is any process taking high resources : chown to root for that process and chmod 000 also if .sh process is running then
chown it to root:root
8)if exim is taking high resources then check for exim logs : use this command :
replace :blackhole: : fail: -- /etc/valiases/*
0 comments:
Post a Comment