check free memory usage
Posted by cikul | Posted in Linux | Posted on 31-05-2008-05-2008
1
[root@red ~]# free -m total used free shared buffers cached Mem: 1536 718 817 0 0 0 -/+ buffers/cache: 718 817 Swap: 0 0 0
[root@red ~]# free -m total used free shared buffers cached Mem: 1536 718 817 0 0 0 -/+ buffers/cache: 718 817 Swap: 0 0 0
Use below mentioned command to get top memory consuming processes”
ps aux | head -1;ps aux –no-headers| sort -rn +3 | head
Use below command to get top cpu consuming processes:
ps aux | head -1;ps aux –no-headers | sort -rn +2
gonna try :)
To check total connection to our server, we can use command :
root@server [~]# netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
That command useful if you want to check any DDOS attack to your server. Read the rest of this entry »
Sebenarnya informasi ini sedikit basi, tapi mungkin tetap berguna bagi yang sedang ke Malang atau tinggal di Malang, siapa tahu daerahnya sudah tercover HotSpot.
Beberapa Titik HotSpot di Malang didapat dari berbagai sumber dan coba saya kategorikan menurut jenis lokasinya :
Sometimes we need to kill process or application on *nix system. For single process or application we should use :
kill -9 pid
Which PID is process id used by application.