Friday, 10 February 2012

10 Linux Performance Monitoring and Debugging Tools

Similar to the previous post, this short post provides 10 monitoring and debugging tools that will be helpful when you are working on a Linux environment.
Sar
#Report I/O statistics every 1 second for a total of 3 times
sar –b 1 3
Tcpdump
# Displays captured packages in ASCII
tcpdump –A –i eth0
Iostat
#Displays information about the CPU usage and I/O statistics about all the partitions of the system
iostat
Mpstat
#Report processor statistics
mpstat -A
Vmstat
#Display the memory usage (including swap)
vmstat
PS
#Display processes that belong to the specified usernames
ps –f –u wwwrun, postfix

#Display the process id and commands in a hierarchy.
ps –e –o pid,args --forest
Free
#Display the total physical memory on this system in KB
free

#Display total in MB displaying the sum of physical and swap memory values, excluding the buffer/cache line.
free –mto
TOP
# Displays a specific user process only
top –u geek

While unix top command is running, press u which will ask for username.
Pmap
#Displays memory of the given process id
pmap 5732

#Display additional information about the memory maps
pmap –x 5732

#Display the device information of the process maps
pmap –d pid

3 comments:

  1. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles.
    Employee Engagement Solutions

    ReplyDelete
  2. Thanks for providing this informative information you may also refer.
    http://www.s4techno.com/blog/2016/07/12/quick-guide-to-iscsi-on-linux-and-solaris/

    ReplyDelete