Dump SOW File
amps_sow_dump
is a utility used to inspect the contents of a SOW topic store. Additionally, it can be used to gather summary statistics on a SOW file.
Options and Parameters
Option | Description |
| Filename of the SOW file. |
| Maximum number of records to print per file. |
| Print record metadata for records and file summary. |
| Print memory sizing chart for efficiency comparison (experimental). |
| Escape special characters in record data and header. |
| Prints only the record data using the provided ASCII character value as the record delimiter [default: 10 for newline]. |
| Show the version number of the program and exit. |
| Show the help message and exit. |
Usage
The following listing shows a simple sow dump of a fix
format topic with the -e
flag set to make the header, message and field separators readable. Each key which exists in the order.sow
file is dumped out to stdout. This output can easily be redirected to a new file, or piped into another program for further analysis.
This example also uses the -e
flag which escapes the special characters. The purpose of this is to simplify the output presented. The field separator used in this example is byte 1
which is replaced with as \x01
by the -e
flag.. If this flag was not used, then a non-ascii character would be displayed, making the output harder to read.
amps_sow_dump
expects a filename at a minimum in order to complete the SOW topic store dump process.
Verbose Output
The amps_sow_dump
utility also provides for verbose output, which will display more information about the file and its structure in addition to the records contained in the file.
Sizing Chart
The example below shows the output from the --sizing-chart
flag. This is feature can be useful in tuning AMPS memory usage and performance. The Record Size
with the asterisk shows the current Record Size
setting and allows an AMPS administrator to compare memory usage efficiency along with the potential for a multi-record penalty.
This feature is currently considered to be experimental, so changing AMPS record size configuration based on the results may not necessarily help performance, and could hurt performance in some cases.
Last updated