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.
Invoking the Line-by-line <strong>Monitoring</strong> Routine<br />
Enter the number of your choice: 5<br />
Enter metrics item number (press 'Enter' to terminate, for list)<br />
Metric#: <br />
1.) GloRef: global refs<br />
2.) GloSet: global sets<br />
.<br />
.<br />
.<br />
34.) RtnLine: lines of Cache Object Script<br />
.<br />
.<br />
.<br />
51.) Time: elapsed time on wall clock<br />
52.) TotalTime: total time used (including sub-routines)<br />
Metric#:<br />
This example does not show the full list; it is best for you to retrieve the current list when you run the routine. See<br />
the Line-by-line Monitor Programming Interface section for a method of retrieving the list.<br />
Note:<br />
For all collections, the number of routine lines and time (minimal metrics) are always collected.<br />
3. Select Processes to monitor – Enter the number of your choice as it appears in the menu. The default is 1<br />
for all processes.<br />
Select Processes to monitor<br />
1.) Monitor All Processes<br />
2.) Monitor Current Process Only<br />
3.) Enter list of PIDs<br />
Enter the number of your choice: <br />
^%SYS.MONLBL does not currently provide a list or a way to select PIDs; however, you can use the ^%SS utility<br />
or the [System] > [Processes] page of the Management Portal to find specific process ID numbers.<br />
Enter the number of your choice: 3<br />
Enter PID (press 'Enter' to terminate)<br />
PID: 1640<br />
PID: 2452<br />
PID:<br />
Press Enter twice after entering the last process ID to end the list.<br />
Once you provide the necessary information, ^%SYS.MONLBL allocates a special section of shared memory for counters<br />
for each line per routine, and notifies the selected processes that monitoring is activated.<br />
Monitor started.<br />
Press RETURN to continue ...<br />
After starting the line-by-line monitor, the routine displays a more extensive menu. The Line-by-line <strong>Monitoring</strong> Options<br />
section describes each option on this extended menu.<br />
7.1.2 Estimate Memory Requirements<br />
Before starting the monitoring process you can use this utility to estimate how much memory a collection requires. Typically,<br />
there is sufficient shared memory available for monitoring a few routines. However, if you want to monitor hundreds or<br />
more routines, use this option to help determine memory needs.<br />
<strong>Caché</strong> <strong>Monitoring</strong> <strong>Guide</strong> 59