Installation and Use of nmon

Source: Internet
Author: User

Author: skate

Time: 2011/08/06

_________________________________________________________________________________________________________________________

 

 

Installation and Use of nmon

 

1. Download

Nmon:
Http://nmon.sourceforge.net/pmwiki.php? N = site. Download

Nmonanalyser
Http://www.ibm.com/developerworks/wikis/display/WikiPtype/nmonanalyser

Help:
Http://nmon.sourceforge.net/pmwiki.php? N = site. Documentation

 

Download the binary file and run it directly. Do not install it. It is very convenient.

 

[Root @ dhdb ~] # Ls
Anaconda-ks.cfg dset_report_for_dh1_1_dhdb-svctag-2qlxk2x-pe295020..zip rpc. rstatd-4.0.1
Autoscan. Log dset_report_for_dh1_1_dhdb-svctag-2qlxk2x-pe295020..zip. Bak rpc.rstatd-4.0.1.tar.gz
Bea dset_report_for_dh1_1_dhdb-svctag-2qlxk2x-pe295020..zip. bak2 tc_country.dmp
Configure. Scan install. Log TMP
Dbstart. sh install. log. Syslog
Desktop nmon_linux_x86_64

[Root @ dhdb ~] # Cp nmon_linux_x86_64 nmon
[Root @ dhdb ~] # Cp nmon/bin/nmon
[Root @ dhdb ~] # Cp nmon/usr/bin/nmon
[Root @ dhdb ~] # Cp nmon/usr/local/bin/nmon

 

You can run nmon directly.

[Root @ dhdb ~] # Nmon-S 300-C 288-F-M/tmp

-S 300: indicates that data is collected every 300 seconds,
-C 288: indicates that data is collected for 288 times, 300*288 = 86400 seconds, which is exactly the data of one day. In this way, once this program is run, a data file of one day will be generated,
-M/tmp: indicates the path of the generated data file.
-F: indicates that the generated data file name has a time

 

Of course, we can also make it automatically monitor, one folder every day, one file every hour, one sample every minute or five minutes

 

For example, on 175,/Oracle/SH

[Root @ dhdb sh] # pwd
/Oracle/SH
[Root @ dhdb sh] # ls
Nmon. Sh

File Content:
[Root @ dhdb sh] # More nmon. Sh
# Author: skate

# Function: Monitor System Information
# Time: 2011/08/05

Npath =/tmp/
# Monitoring per 120 senonds
Nmon-S 120-C 720-F-M $ npath

# Monitoring per 300 senonds
# Nmons-s 300-C 288-F-M $ npath

# Delete file before 365 day
# Find/tmp-name *. nmon-mtime + 365-exec RM {}\;
~
[Root @ dhdb sh] #

 

Scheduled task, started every morning, and generates a file

[Root @ dhdb sh] # crontab-l
0 0 *** sh/Oracle/SH/nmon. Sh>/dev/null 2> & 1

[Root @ dhdb sh] #

 

In the/tmp directory, a nmon file is generated every day. These files are uploaded to Windows machines and the analysis tool "nmon analyser v33g" is opened in Excel ",
Then you can analyze the nmon file.

 

 

 

 

 

 

-------- END ----------

 

 

 

 

 

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.