Magento Expert Forum - Improve your Magento experience

Results 1 to 3 of 3

10 Command Line Tools to Monitor Linux Performance

  1. #1
    Junior Member ccvv's Avatar
    Join Date
    Mar 2013
    Posts
    64
    Thanks
    6
    Thanked 17 Times in 13 Posts

    Post 10 Command Line Tools to Monitor Linux Performance

    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:

    Code:
    # top
    It will show you something like this.

    Name:  img-1.png
Views: 375
Size:  109.6 KB

    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: 79
Size:  49.9 KB

    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: 126
Size:  98.2 KB

    6. Monitor HDD I/O

    This command will help you show exactly what process is using the highest HDD I/O.

    Code:
    iotop
    The screenshot can be as below:

    Name:  img-3.jpg
Views: 117
Size:  80.4 KB

    I own you guys 4 commands more, I will update later. Hope it help. Thanks

    View more threads in the same category:


  2. #2
    Junior Member golddev's Avatar
    Join Date
    Mar 2013
    Posts
    41
    Thanks
    1
    Thanked 9 Times in 5 Posts

    Default

    Very nice tips, thanks guy

  3. #3
    Administrator david's Avatar
    Join Date
    Nov 2012
    Posts
    261
    Thanks
    22
    Thanked 42 Times in 34 Posts

    Default

    All of tools what server administrator have to know , thanks ccvv. It 's very useful.

Similar Threads

  1. Check Size of a Directory in Linux Tips
    By david in forum PHP programming
    Replies: 2
    Last Post: 22-04-2019, 07:56 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •