How to toggle and use different performance counters for Statistica's MAS (Monitoring and Alerting Server)?

How to toggle and use different performance counters for Statistica's MAS (Monitoring and Alerting Server)?

book

Article ID: KB0071550

calendar_today

Updated On:

Products Versions
Spotfire Statistica 14.0 and higher

Description

Monitoring and Alerting Server (MAS) implements various performance counters which can be monitored on the system in Windows Performance Monitor. With a MAS installation, it can be easy to overschedule MAS such that it does not keep up, or tasks get skipped.

For example, if multiple long-running tasks are scheduled to run at or near the same time. Similarly, it can be difficult to locate a window of low usage to schedule new tasks. These performance counters can help with monitoring the system to see periods where it is mostly idle, and periods, where it is too heavily scheduled so the load, can be spread out more. And they can give insight into the performance of MAS, how long tasks are taking, if the COM+ Pool size needs to be increased, etc. 
 

Environment

Windows

Resolution

Registering the Performance Counters

The installer should register the MAS Performance Counters so that they show up in the Performance Monitor. If they are not there, they can be registered with the Windows command line system utility lodctr.exe, and unregistered with unlodctr.exe

Registering
  1. Open a command prompt running as administrator
  2. Change the current directory to the Statistica installation directory where MASMonitorService.exe and MASTaskRunner.exe are located 
  3. Run the following commands:

     lodctr /m:MASMonitorService.man
     lodctr /m:MASTaskRunner.man
Unregistering
  1. Open a command prompt running as administrator
  2. Change the current directory to the Statistica installation directory where MASMonitorService.exe and MASTaskRunner.exe are located 
  3. Run the following commands:

     unlodctr /m:MASMonitorService.man
     unlodctr /m:MASTaskRunner.man

Using the MAS Performance Counters 

  1. On the MAS Server, search for/run perfmon or Performance Monitor (also available in Administrative Tools.) 
  2. In the tree on the left, select Performance/Monitoring Tools/Performance Monitor to show the graph
  3.  Click the green plus sign button in the graph toolbar to add counters
  4. In the Available Counters section, navigate to and expand MAS Monitor Service or MAS Task Runner
  5. Select and add the desired counters. Note that you can enable the Show Description checkbox to see more information about a selected counter.
  6. The counters for MAS Monitor Service are single instance counters, meaning you will not select anything for "Instances of selected object"
  7. The counter for MAS Task Runner is a multiple instance counter, one per MASTaskRunner.exe process. You will need to select one or more of the available instances. They are named Instance_[process-id]. 
  8. The selected counters will now show in the graph view. You may need to adjust the graph vertical scale or the specific counters' scaling factors to make the graph more readable

Adding performance counters for MAS to Performance Monitor:

Example of adding MAS Taskset and MASMonitor Server counters

Issue/Introduction

How to toggle and use different performance counters for MAS?