Recent Changes - Search:

Home Page



Other tools


edit SideBar

Nmonmerge

Site.Nmonmerge History

Hide minor edits - Show changes to markup

September 10, 2017, at 07:09 PM by 127.0.0.1 -
Changed lines 52-53 from:
  1. One AIX you many have a AIX version which included the PCPU and SCPU stats (now removed in current AIX releases) - these on a Vm with high numbers of virtual CPUs can add thousands of pointless lines of data and MBs to the file size - this may crash Excel running the nmon Analyser. Note: you can grep these lines cat nmonfile | grep -v ^PCPU | grep -v ^SCPU > smaller.nmon) out to improve you chances.
to:
  1. On AIX you many have a AIX version which included the PCPU and SCPU stats (now removed in current AIX releases) - these on a Vm with high numbers of virtual CPUs can add thousands of pointless lines of data and MBs to the file size - this may crash Excel running the nmon Analyser. Note: you can grep these lines cat nmonfile | grep -v ^PCPU | grep -v ^SCPU > smaller.nmon) out to improve you chances.
  2. The nmon files are from different servers or virtual machines - absolutely sure this will not work
September 10, 2017, at 06:49 PM by 127.0.0.1 -
Changed lines 1-2 from:

Merges two nmon files

to:

Briefly

Merges two nmon files together for later graphing or processing

September 10, 2017, at 03:04 PM by 127.0.0.1 -
Changed line 40 from:
  • Compile the a an IBM XLC or GNU gcc C compiler: cc -o nmonmerge -O3 nmonmerge2.c
to:
  • Compile the an IBM XLC or GNU gcc C compiler: cc -o nmonmerge -O3 nmonmerge2.c
September 10, 2017, at 03:04 PM by 127.0.0.1 -
Added line 25:
Changed lines 31-34 from:
	nmonmerge a.nmon b.nmon >x.nmon
	nmonmerge x.nmon c.nmon >y.nmon
	rm x.nmon
	Now y.nmon contains all the data
to:
	nmonmerge a.nmon b.nmon >merged.nmon
	nmonmerge -a merged.nmon c.nmon 

	Now merged.nmon contains all the data
September 10, 2017, at 03:01 PM by 127.0.0.1 -
Changed lines 1-5 from:

Merges two nmon files

Warning: Please read the warnings at the end of this page.

use

to:

Merges two nmon files

Warning: Please read the warnings at the end of this page before attempting to a large scale project using nmonmerge.

Use

Changed lines 44-54 from:
to:

If you have any of the following the resulting nmon files might not work:

  1. The combined numbers of snapshot is large (thousands) - this may crash Excel running the nmon Analyser
  2. Top process stats as this can drastically add to the numbers stats - this may crash Excel running the nmon Analyser
  3. The more files you add together like a weeks worth of daily files or months worth, will probably case one of the above two errors
  4. The server or VM configuration changes like the number of networks or disks - this is because the columns will not line up or there are disk with no names - missing when the first title line was added to the first nmon file
  5. The extra Disk service time stats increases the volume of stats
  6. One AIX you many have a AIX version which included the PCPU and SCPU stats (now removed in current AIX releases) - these on a Vm with high numbers of virtual CPUs can add thousands of pointless lines of data and MBs to the file size - this may crash Excel running the nmon Analyser. Note: you can grep these lines cat nmonfile | grep -v ^PCPU | grep -v ^SCPU > smaller.nmon) out to improve you chances.

If you get the merge to work the data volume can mean Excel takes too long to process the stats. Time like 5 to 30 minutes and Excel looks like it has hung with Windows: "Not responding" warning. In addition just saving the resulting Excel data to file can take minutes and generate huge files (Gigabytes).

In this case, I recommend you start using nmonchart - it copes with large data volumes much better, when in to the tens of thousands of snapshot the graphing cat take a dozen seconds)..

September 10, 2017, at 02:02 PM by 127.0.0.1 -
Added lines 3-5:

Warning: Please read the warnings at the end of this page.

use

Added line 36:

Compiling

Added lines 40-44:

Warning

If you have two small .nmon files from the same Server / VM with not configuration changes and the files were saved consecutively then there is a high chance this should work fine.

September 10, 2017, at 01:57 PM by 127.0.0.1 -
Changed lines 34-35 from:
  • Download nmonmerge2.c
  • Compile the a an IBM XLC or GNU gcc C compiler: cc -o nmonmerge -O3 nmonmerge2.c
to:
  • Download nmonmerge2.c
  • Compile the a an IBM XLC or GNU gcc C compiler: cc -o nmonmerge -O3 nmonmerge2.c

- - - The End - - -

September 10, 2017, at 01:56 PM by 127.0.0.1 -
Changed lines 1-2 from:

Hint: convert an nmon file so it can be merged with an older one

to:

Merges two nmon files

Changed lines 31-35 from:

@]

to:

@]

The command is implemented in C : nmonmerge2.c

  • Download nmonmerge2.c
  • Compile the a an IBM XLC or GNU gcc C compiler: cc -o nmonmerge -O3 nmonmerge2.c
September 10, 2017, at 01:34 PM by 127.0.0.1 -
Changed lines 3-4 from:

[=Syntax: nmonmerge [-a] [-v] original-file extra-file

to:

[@ Syntax: nmonmerge [-a] [-v] original-file extra-file

Changed lines 7-8 from:

=]

to:

@]

Changed line 18 from:

[=

to:

[@

Changed lines 23-25 from:

=]

[=

to:

@]

[@

Changed line 31 from:

=]

to:

@]

September 10, 2017, at 01:33 PM by 127.0.0.1 -
Changed line 3 from:

[(=Syntax: nmonmerge [-a] [-v] original-file extra-file

to:

[=Syntax: nmonmerge [-a] [-v] original-file extra-file

September 10, 2017, at 01:33 PM by 127.0.0.1 -
Added lines 1-30:

Hint: convert an nmon file so it can be merged with an older one

[(=Syntax: nmonmerge [-a] [-v] original-file extra-file

	[-a] append converted extra-file data to end of the original-file
	[-v] verbose extra details are output

=]

  • Without -a the merged data is send to stdout, so redirect it (">") to save the converted data.
  • Note:
    • That header lines are striped out of the 2nd file as they are already in the original file. This assumes no configuration changes like new disks, LUNs, adapters, networks etc., which would cause header and data column mismatches
    • Only the timestamps (Tnnnn) and the number of snapshots are modified everything else is unchanged.
    • Be careful as you might have "missing" snapshots in the time between the data files.
    • An extra line is added, starting "AAA,note" and the filename this line is ignored other tools but will help in diagnosing errors
    • Do NOT sort the nmon file before merging (sorting not needed now anyway)
    • nmonmerge uses a temporary file called temp.nmon

Example: to merge three files a.nmon, b.nmon and c.nmon nmonmerge -a a.nmon b.nmon nmonmerge -a a.nmon c.nmon Now a.nmon contains all the data

Example: to merge three files a.nmon, b.nmon and c.nmon nmonmerge a.nmon b.nmon >x.nmon nmonmerge x.nmon c.nmon >y.nmon rm x.nmon Now y.nmon contains all the data

Edit - History - Print - Recent Changes - Search
Page last modified on September 10, 2017, at 07:09 PM