Caché Monitoring Guide - InterSystems Documentation
Caché Monitoring Guide - InterSystems Documentation
Caché Monitoring Guide - InterSystems Documentation
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
9<br />
<strong>Monitoring</strong> Performance Using ^mgstat<br />
This chapter describes the ^mgstat utility, a tool for collecting basic performance data. The utility works with all versions<br />
of <strong>Caché</strong> since release 5.0.<br />
Note:<br />
This utility may be updated between releases. Contact the <strong>InterSystems</strong> Worldwide Response Center (WRC) for<br />
information about downloading newmgstat.xml from ftp://ftp.intersys.com/pub/performance/.<br />
The calling sequence uses the following arguments:<br />
Argument<br />
sample time<br />
Description<br />
Required. This argument specifies the frequency (in seconds) for sampling<br />
counters; defaults to 2 seconds if sample time is not specified.<br />
Note:<br />
If you specify a sample time greater than 10 seconds, ^mgstat reduces<br />
it to 10 seconds. See the number of samples argument in this table.<br />
number of samples<br />
Required. This argument specifies the maximum number of samples to be<br />
obtained; defaults to 10 iterations if number of samples is not specified.<br />
Note:<br />
If ^mgstat reduces the sample time, it increases the specified number<br />
of samples to ensure that the duration (sample time * number of<br />
samples) of the run is effectively the same as it would have been if<br />
none of the arguments were modified.<br />
filename<br />
page length<br />
Optional. This argument is used only by other WRC performance tools.<br />
Optional. If you run ^mgstat interactively, this argument specifies the number<br />
of lines to display before the header rows are repeated.<br />
Note:<br />
This argument is ignored when you run ^mgstat as a background job.<br />
If you specify a page length less than 5 lines, ^mgstat increases it to<br />
5 lines; if you omit this argument or specify a page length of 0, ^mgstat<br />
displays the header once, at the beginning of the page.<br />
For example, running ^mgstat as a background job to specify that file samples be obtained every 5 seconds until 17280<br />
samplings are obtained (in the <strong>Caché</strong> Terminal, from the %SYS namespace), enter the following:<br />
%SYS> JOB ^mgstat(5,17280)<br />
<strong>Caché</strong> <strong>Monitoring</strong> <strong>Guide</strong> 87