About Linux FAQ

Browse More FAQs:

Linux performance tools to troubleshoot problem

Posted by Vivek Gite [Last updated: July 6, 2006]

Q. I am new to Linux. What tools or commands are recommended to troubleshoot performance related problems?

A. Following are the basic or essential tools that every Linux or UNIX system admin should be aware of:

a) top
b) sar
c) vmstat
d) iostat
e) free

top command
The top program provides a dynamic real-time view of a running system. It can display system summary information as well as a list of tasks currently being managed by the Linux kernel. Type the top command:

$ top

sar command
The sar command is performance monitoring tool. It can find out what Linux is doing all the time. It can generate report and email them to sys admin. In order to use sar you need to install sysstat package. sar displays performance data for:

  • CPU and Queue,
  • Disk I/O
  • Swap and Memory
  • CPU interrupts, Networking and much more

vmstat command
vmstat reports information about processes, memory, paging, block IO, traps, and cpu activity. See the detailed article "How do I find out Linux Resource utilization to detect system bottlenecks?"

iostat command
The iostat command is used for monitoring system input/output device loading by observing the time the devices are active in relation to their average transfer rates i.e. it is useful to monitor disk throughput. See the detailed article: "How do I find out Linux CPU utilization?"

free command
The free command displays the total amount of free and used physical and swap memory in the system, as well as the buffers used by the kernel. See the detailed article: "Linux check memory usage"

Read the man pages of all of these tools. Always remember you need to spend some time using these tools, and then only you will be able to understand the output of these commands.

E-mail this to a friend      Printable version

Related Other Helpful FAQs:

Discussion on This FAQ

  1. Anonymous Says:

    cool stuff

  2. Anonymous Says:

    usefull, nice.

  3. Mark Seger Says:

    one link does it all! check out http://collectl.sourceforge.net/ for all your performance monitoring needs.
    -mark

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.