6.16 System Statistics

  constantly collects information from the different sub-systems and hosts within the system. Among other things, this information is used for load balancing. Using System Statistics, you can view, export, and import statistical information.

There are three different types of statistics: host, pico instance, and workflow.

Host Statistics

 collects statistics from the different machines hosting a Platform or Execution Context, e g the load of the CPU or the number of context switches. This is called host statistics.

It also uses the std UNIX command to collect the information. This binary must be installed to have statistics collected and to perform load-balancing work for workflows. The following list holds all values collected from each host. On newer operating systems, some of these may not be available for collection due to changes in the kernel of the operation system.

  • CPU User Time - This value shows how much time was spent in non-kernel specific code. This value is displayed in percentage. 100% means that all processing power is spent. See CPU System Time as well.

  • CPU System Time - This value shows how much time was spent in kernel-specific code, such as scheduling of different processes or network transfer. This value is displayed in percentage. 100% means that all processing power is spent.

  • Context Switches - The number of context switches per second. A context switch occurs when one process hands over information to another process. The more context switches, the less effective and scalable the system will be.

  • Swapped To Disk - The amount of data that was swapped out. A large value indicates that the system does not have enough RAM to manage the memory requirements of the different processes.

  • Swapped In From Disk - The amount of data that was read from the swap.

  • Processes Waiting For Run - Shows how many processes that are waiting to run. A high number indicates that the machine is not fast enough to manage the load.

  • Processes Swapped Out - Processes that have persisted in swap due to insufficient available memory, or due to aggressive management of the memory layer.

  • Processes In Sleep - The number of processes that are presently not doing anything.

Pico Instance

Every minute,  collects memory information from the different Java processes defining the Platform and the Execution Context. This information shows how much memory is used and how much memory that is available for the running process

  • Used Memory - Shows the amount of memory currently allocated by the running process. As Java is a language utilizing garbage collection, this number may very well get close to the maximum memory limit without being a problem for the running process. However, if the amount of used memory is close to the maximum limit for a long time, the process needs more memory. This value is displayed in bytes. See the -Xmx and -Xms properties defined in the XML file defining the process.

  • Maximum Memory - Shows the amount of memory that the process can use. This value is displayed in bytes.

  • Process CPU Time - Shows the percentage of CPU time that has been used.

  • Open File Descriptors - This is a Unix measurement that enables you to create a statistical diagram of the number of open files during the last minute, hour, or day.

  • Garbage Collection Count - Shows the number of times the garbage collector has run since the last time statistics were collected.

  • Garbage Collection Time - Shows the amount of time the garbage collector has run since the last time statistics was collected. This value is displayed in milliseconds

  • Thread Count - Shows the number of allocated threads.

Workflow Statistics

collects statistical data that is sampled every 5 seconds as long as a workflow is being executed. This information includes:

  • Throughput - Displays workflow throughput. As long as a workflow is being executed, it continuously samples the number of processed UDRs, or raw data, per second.

  • Queue Throughput - Displays queue throughput per second for real-time queues. Statistics for real-time queues are only available when routing UDRs, not raw data.

    Note!

    To enable its convenient delegation to external systems, or to generate an alarm if the throughput falls too low, throughput is also defined as a MIM value for the workflow. For further information, see Throughput Calculation in 3.1.8 Workflow Properties.

  • Simultaneous - Displays the number of simultaneously running workflows.

  • Queue Size - The size of the queue space that is being used at the time of the sample for each individual queue.

 uses Java Management Extensions (JMX) to monitor MIM tree attributes in running workflows. For more information, refer to 7.3 Workflow Monitoring.

Viewing the System Statistics

To open the System Statistics, click the Tools button in the upper left part of the Desktop, and then select System Statistics from the menu.

To display statistics in System Statistics, you will have to use the Search function, see the section below, Searching the System Statistics, or for Import statistics, see the section below, Importing Statistics.

Searching the System Statistics

To search, either click on the Search button, or click on the Edit menu and select the Search... option to open the Search System Statistics dialog.

In the Search System Statistics dialog, search criteria may be defined in order to single out the Statistics of interest.


Search System Statistics dialog


ItemDescription

View Mode

Specifies the type of statistics you want to view; host, pico instance or workflow.

Resolution

Specifies the time resolution to be used.

There are three different time resolutions on which statistics are collected.


Time resolutionDescription

Minute

This is the most precise value but requires the most from the server when locating the statistics. It is saved every minute.

Hour

These values are calculated every hour and are a sum of the minute values for that hour.

Day

Day values are calculated by the corresponding statistics task and are a sum of the minute values for that day.

Criteria

The Criteria settings are used for selecting which search criteria you want the displayed statistics to meet. The following criteria are available:

Host - If this option is selected, the statistics originating from the host selected in the drop-down list will be displayed.

Pico Instance - If this option is selected, the statistics originating from the Pico instance selected in the drop-down list will be displayed.

Workflow - If this option is selected, the statistics originating from the workflow selected in the drop-down list will be displayed.

Period - If this option is selected, the statistics from the chosen time interval will be displayed. Either you can select one of the predefined time intervals; Last Hour, Today, Yesterday , This Week , Previous Week , Last 7 Days , This Month, or Previous Month , or you can select the option User Defined and enter the start and end date and time of your choice in the From and To fields.

Note!

If several criteria are enabled, an absolute match will be displayed. For instance, if Host and Workflow is specified as well as Period , only the time for which there are both workflow measures and host measures is displayed.

Options in System Statistics

When you have performed your first Search, see the section above, Searching the System Statistics, or for imported statistics, see the section below, Importing Statistics, System Statistics displays the statistical information.

 

System Statistics

For each type of statistics you have selected to view, you will see a Value drop-down list displaying the statistical value selected for the statistical type, and one drop-down list displaying the criteria selected. If you select another statistical value or another criteria in one of these drop-down lists, the statistical data in System Statistics is updated instantly.

For each statistics type you can see:


ViewDescription

Host View

The statistics for each host will be displayed in a separate color. If there are several matching hosts, all may be displayed at the same time.

Pico Instance View

The statistics for each pico instance will be displayed in a separate color. If there are several matching pico instances, all may be displayed at the same time.

Workflow View

The statistics for each workflow will be displayed in a separate color, and if you have selected to view queue statistics, each queue will have its own color. If there are several matching workflows/queues, all may be displayed at the same time.

If you select to view Queue Throughput statistics and you have more than one route with the same name in a workflow, they are displayed separately by default and are named in the format route name (source agent name), e g r_1 (collection1). If you want to group these queues together, e g due to legacy settings, select the Ignore Route Owner check box, and the source agent is no longer displayed per route. 

Note!

When the Ignore Route Owner checkbox is selected, and there is more than one route with the same name, if the statistics are displayed on hour or day resolution, the average of all routes with the same name is shown. If the statistics are displayed in minute resolution, the statistics for one of the queues with the same name are shown, and there is no rule for which queue is shown.

The menus in the menu list contain options for printing, exporting, importing, searching, and refreshing the statistics. Searching, printing, and refreshing can also be performed by using the buttons at the top of the dialog. To the right of the buttons, you can see the current date. For further information about the Export... and Import... options, see the sections below, Exporting Statistics, and Importing Statistics.

At the bottom of the dialog, there is a scroll bar and two buttons for zooming in and out. With these, you can focus on a particular time window within the search result. The scrollbar enables you to scroll back and forth in time to see the value changes.

At the bottom right corner of the dialog, you have a drop-down list called Value. This list contains three different types of values:


Value TypeDescription

Minimum

Displays the lowest value that was sampled

Average

Displays the average value that was sampled

Maximum

Displays the highest value that was sampled

Exporting Statistics

Exporting statistics may be useful for several purposes, for example, if you want to share the statistical information with someone who do not have access to your  system.

To export the statistics:
 

  1. In System Statistics, click the File menu and select the Export... option.

    The Save dialog will open.

    Browse to the directory where you want to save the file, enter a file name and click on the Save button.

    The statistical information for the selected time period will be saved in *.zip format.

    Hint!

    The export functionality can also be used for saving statistics on a regular basis, e g every month or every year, to use for comparison with current statistics.

Importing Statistics

The Import functionality is used for importing statistics that have previously been exported in a  system. When using the Import functionality you do not have to perform a search in order to display the statistics.

Note!

An import of statistics will not affect the data in the database, it will just display a snapshot of the statistics at the time when it was exported.

To import the statistics:
 

  1. In System Statistics, click the File menu and select the Import... option.

    The Open dialog will open.
     

  2. Browse to the directory where the *.zip file you want to import is located, select the file, and click on the Open button.

    The statistical information will now be displayed in System Statistics. The same search criteria that were set in the Search System Statistics dialog when the statistics were exported will be displayed.

    The date information at the top of the dialog now displays the time interval for the imported statistics, and the text "Imported Statistics" will also appear in red beside the date information.

Disabling Collection of Statistics

You can disable the collection of statistics on the Platform by setting the following Platform properties to false in platform.conf:

  • mz.statistics.collect.all - All statistics
  • mz.statistics.collect.pico - Pico statistics
  • mz.statistics.collect.workflow - Workflow statistics

The default value of the properties above is true.

When you set the property mz.statistics.collect.all to false, this overrides the settings of mz.statistics.collect.pico and mz.statistics.collect.workflow.