Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use NMON to analyze system performance under Linux

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article shows you how to use NMON to analyze system performance under Linux, the content is concise and easy to understand, it can definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

Download the version of the appropriate CPU type:

Pv [* c+H0 http://nmon.sourceforge.net/pmwiki.php?n=Site.DownloadITPUB personal space [;} u (q$Br)

Wget http://sourceforge.net/projects/nmon/files/download/nmon_x86_12a.zip/download

Unzip nmon_x86_12a.zip

Bp+\ C1N0Archive: nmon_x86_12a.zip

ML;rC x%tR0 inflating: nmon_x86_rhel45

'K_c-y4Xu0 inflating: nmon_x86_rhel52

I: ZFI M vJournal jp0 inflating: nmon_x86_sles9ITPUB personal Space) Pw (c6` (PlayW)

Inflating: nmon_x86_sles10

!} BV0 inflating: nmon_x86_ubuntu810ITPUB personal space ST#pco$V]) Q

Inflating: nmon_x86_fedora10ITPUB personal space "OSIS personal CTR"

Inflating: nmon_x86_opensuse10

Use the corresponding operating system file:

_ O* | [QQrje0chmod + x nmon_x86_ubuntu810ITPUB personal space\} B6a u&s&cs {

Mv nmon_x86_ubuntu810 / usr/local/bin/nmon

You also need to do the following for Debian (you can also run it if you don't have to):

: i%uD.gO0apt-get install lsb-releaseITPUB personal space 9I2jTR8\-_ d

Lsb_release-d | sed 's/Description:\ tUniverse / etc/debian_release

Then run nmon directly.

ITPUB personal space $S/ie$c\ U

Collect data and generate reports: ITPUB personal space CPV&M?,@_+i/t

Data collection: ITPUB personal space 1g Universe vI3Dr

Nmon-S10-C60-f-m / home/

Parameter explanation: ITPUB personal space\ ipersonal space; | `8q&D#xN

-S10 collects data every 10 seconds. ITPUB personal space P`rt $M1P

-c60 collects 60 times, that is, the data is collected for ten minutes. ITPUB personal Space ~ & RF8 | Ften G) o xd%PY/Y

-f the data file name generated contains the time when the file was created. ITPUB personal Space x]? s "QTIX J H [Q

-m the directory where the generated data files are stored.

A nmon file is generated and updated every ten seconds until ten minutes later.

4Oi7XD y}-L1X0 generates a file name such as: hostname_090824_1306.nmon, and "hostname" is the hostname of this host.

Generate report: ITPUB personal Space dO5Zp.zj K3V

Download nmon analyser (a free tool for generating performance reports): ITPUB personal space FP,pQ "e0l&mW

Http://www.ibm.com/developerworks/wikis/display/Wikiptype/nmonanalyser

Transfer the previously generated nmon data file to the Windows machine and open the analysis tool nmon analyser v33C.xls with Excel. Click the "Analyze nmon data" button in the Excel file and select the nmon data file, which will generate an analyzed result file: hostname_090824_1306.nmon.xls. Open the generated file with Excel and you can see the result.

If the macro cannot be run, you need to do the following: ITPUB personal space C ^} uz'wI4O? I

Tools-> Macro-> Security->, then open the file and allow the macro to run.

Automatically collect data on a daily basis:

2? | 5zp "| D0 adds a record to crontab:

_-l A\ 8m] 0Dc00 0 * root nmon-s300-c288-f-m / home/ > / dev/null 2 > & 1

300 seconds, 288 seconds, 86400 seconds, which happens to be a day's data.

Reference:

1L ^) H) eTing L {] V0nmon for Linux:ITPUB personal space-Hi9f#t0Y;g6\ ({

Http://nmon.sourceforge.net/pmwiki.php

Nmon performance: a free tool for analyzing AIX and Linux performance:

# {vND3` [* `_ 0 http://www.ibm.com/developerworks/cn/aix/library/analyze_aix/index.html

Nmon analyser-A free tool for generating AIX performance reports: ITPUB personal space (| walled Kroomx j "xo

Http://www.ibm.com/developerworks/cn/aix/library/nmon_analyser/index.html

Actual combat: ITPUB personal space L0@.Rkv3jL

ITPUB personal space, Z (Q Kp3cB+Z "\

Linux kernel: 2.6.18-164.el5

:] 8Fz} G/uX A0ITPUB personal Space "L:\ SN\ / Ib

1. Go to RPM SEARCH to find the corresponding RPM package and download:

7roomi t0J "O0 http://rpm.pbone.net/index.php3/stat/4/idpl/12088655/com/nmon-11f-1.el5.rf.x86_64.rpm.htmlITPUB personal space'Kz c.THa6gz

F3I'H'L eU2s4 | "V02. Installation: ITPUB personal space, y9Y:eo [

Rpm-ivh nmon-11f-1.el5.rf.x86_64.rpm

3. Use:

G {- _ 'W8n | specific use of 9Rkj0yI0 can be found in the article reprinted above.

Zl.~.o) blE,HxV%d0 or

Zp8ME:Qn | 5N0 view help nmon-h

. / n

Cannot execute binary file.

It is not clear which platform the media is for linux, so further check the Linux version

Quote

[ora9201@hzmc linux] $uname-a

Linux hzmc 2.6.18-53.el5xen # 1 SMP Mon Nov 12 03:26:12 EST 2007 i686 i686 i386 GNU/Linux

Quote

[ora9201@hzmc linux] $file / sbin/init

/ sbin/init: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped

You can see that this is the Intel x86 series CPU:80386, i386

Further check the nmon media version

Quote

[ora9201@hzmc linux] $file nmon_x86_rhel45

Nmon_x86_rhel45: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped

The above content is how to use NMON to analyze system performance under Linux. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report