Monitor Linux Performance is very important but not many people think it is very simple with some easy command lines.
The true thing is this is the task you have to do daily to make sure your server down or at least monthly and of course when your server slow down. After a long time working with Linux I got a summary of these command line what can help you quickly reach to Linux Administrator to control the server performance quality.
1. Mornitor overral linux process with "top"
This command is very popular, it will help you display CPU usage, Memory usage, Buffer Size, Process PID, Cache Size, Swap Memory, User, Commands and more.
it 's quite simple, just simply type:
It will show you something like this.
![Name: img-1.png
Views: 396
Size: 109.6 KB](https://magentoexpertforum.com/attachment.php?s=b0613e151e0e0ae629d0c0cbe8eb00b4&attachmentid=10&d=1368624290)
It will show you the status of current server and update time-to-time. To get out of it, type "q".
2. List Open Files with "lsof"
You realize how it work when you see the name of it, it simply list all of opening files. It will show you which files make your HDD can't be unmount and you know how to do with it. Type it and you will see.
3. Network Packet Analyzer
Let 's type "vmstat" and you will see something like this:
Code:
root@localhost:~# vmstat
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
1 0 17116 180860 29356 365176 0 4 672 95 195 834 5 1 86 7
This action will show you I/O blocks, interrupts, CPU activity, virtual memory, kernerl threads, disks, system processes and more. It is very useful when you want to track these information quickly
4. Network Statistics with "netstat -a | more"
If you manage a server what have a lot of traffic you will want to know how much for imcome and outcome, this command will help you.
![Name: img-2.jpg
Views: 81
Size: 49.9 KB](https://magentoexpertforum.com/attachment.php?s=b0613e151e0e0ae629d0c0cbe8eb00b4&attachmentid=11&d=1368624548)
5. Network Packet Analyzer with "tcpdump -i eth0"
One more command to track the package network to know how is it going with traffic of your server is "tcpdump -i eth0". Look at the screenshot below:
![Name: img-4.jpg
Views: 132
Size: 98.2 KB](https://magentoexpertforum.com/attachment.php?s=b0613e151e0e0ae629d0c0cbe8eb00b4&attachmentid=12&d=1368624564)
6. Monitor HDD I/O
This command will help you show exactly what process is using the highest HDD I/O.
The screenshot can be as below:
![Name: img-3.jpg
Views: 121
Size: 80.4 KB](https://magentoexpertforum.com/attachment.php?s=b0613e151e0e0ae629d0c0cbe8eb00b4&attachmentid=13&d=1368624577)
I own you guys 4 commands more, I will update later. Hope it help. Thanks
View more threads in the same category:
Bookmarks