码迷,mamicode.com
首页 > 系统相关 > 详细

Nmon 监控 Linux 的系统性能

时间:2016-01-23 21:25:46      阅读:322      评论:0      收藏:0      [点我收藏+]

标签:

Nmon(得名于 Nigel 的监控器)是IBM的员工 Nigel Griffiths 为 AIX 和 Linux 系统开发的一款计算机性能系统监控工具。Nmon 可以把操作系统的统计数据展示在屏幕上或者存储到一份数据文件里,来帮助了解计算机资源的使用情况、调整方向和系统瓶颈。这个系统基准测试工具只需要使用一条命令就能得到大量重要的性能数据。使用 Nmon 可以很轻松的监控系统的 CPU、内存、网络、硬盘、文件系统、NFS、高耗进程、资源和 IBM Power 系统的微分区的信息

By default nmon is available in the Ubuntu repository. You can easily install nmon by running the following command:

 

Once the installation has been finished, you can launch it by typing the nmon command in the terminal.

You wI’ll see the following output:

技术分享

You can see from the above screenshot that the nmon command-line utility runs completely in interactive mode, and you can easily toggle statistics using shortcut keys.

You can use the following nmon keyboard shortcuts to display different system stats:

q : to stop and exit Nmon
h : to see help screen
c : see CPU stats
m : see memory stats
d : see disk stats
k : see kernel stats
n : see network stats
N : see NFS stats
j : see file system stats
t : see top process
V : see virtual memory stats
v : verbose mode

If you would like to collect some statistics on CPU performance, you should hit the c key on the keyboard.

After hitting the c key you wI’ll see the following output.

技术分享

To get stats on top processes that are running on your system, press the t key on your keyboard.

You will see the following output.

技术分享

To get the network stats of your Linux system, just press the n key on your keyboard.

You wI’ll see the following output:

技术分享

Use the d key to get information about disks.

You wI’ll see the following output:

技术分享

A most important key to use with this tool is k; it is used to display some brief information on the kernel of your system.

You will see the following output after hitting the k key on your keyboard.

技术分享

A very useful key for every system admin is the r key which is used to give information on different resources such as machine architecture, operating system version, Linux version and CPU.

You will see the following output by hitting the r key.

技术分享

还有许多其他的工具做的和 Nmon 同样的工作,不过 Nmon 对一个 Linux 新手来说还是很友好的。

Nmon 监控 Linux 的系统性能

标签:

原文地址:http://www.cnblogs.com/leetieniu2014/p/5153955.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!