Skip to main content

SYS.Stats.Global

Class SYS.Stats.Global Extends SYS.WSMon.wsResource [ System = 4 ]

This class represents system metrics captured for globals. Each property is a different metric. A class may be instantiated by calling the class method 'Sample', and then the current value of each property can be accessed.

For example: s ref=##class(SYS.Stats.Global).Sample() w ref.RefLocal ; display number of local global references System stats for Global activity

Properties

RefLocal

Property RefLocal As %Integer;

Local global references. The count of all global accesses to a local database.

RefUpdateLocal

Property RefUpdateLocal As %Integer;

Local global update references. The count of local global references that are Sets, Kills, or $Increments.

RefPrivate

Property RefPrivate As %Integer;

Private global references. The count of all process private global accesses.

RefUpdatePrivate

Property RefUpdatePrivate As %Integer;

Private global update references. The count of private global references that are Sets, Kills, or $Increments.

RefRemote

Property RefRemote As %Integer;

Remote global references. The count of all global accesses to a remote database..

RefUpdateRemote

Property RefUpdateRemote As %Integer;

Remote global update references. The count of remote global references that are Sets, Kills, or $Increments.

LogicalBlocks

Property LogicalBlocks As %Integer;

Logical block requests. The number of database blocks read by the global database code.

PhysBlockReads

Property PhysBlockReads As %Integer;

Physical block reads. The number of physical database blocks read from disk.

PhysBlockWrites

Property PhysBlockWrites As %Integer;

Physical block writes. The number of physical database blocks written to disk.

WIJWrites

Property WIJWrites As %Integer;

Physical writes to the write image journal

ThrottleCnt

Property ThrottleCnt As %Integer;

Global Throttle Count. The number of jobs required to wait for the throttle on this configuration.

ThrottleCur

Property ThrottleCur As %Integer;

Global Throttle Current. The number of jobs currently counted as 'in global' for this configuration.

ThrottleMax

Property ThrottleMax As %Integer;

Global Throttle Maximum. The maximum number of jobs to allow 'in global' on this configuration.

UpdateCnt

Property UpdateCnt As %Integer;

Global Update Count. The number of users currently doing global updates (ijucnt) in this configuration.

UpdateLock

Property UpdateLock As %Boolean;

Global Update Lock. An indicator that the Write Demon has suspended global updates (1/0) in this configuration.

JrnEntries

Property JrnEntries As %Integer;

Journal Entries. Number of journal records created, one for each database modification (Set , Kill, etc.) or transaction event (TStart, TCommit) or other event that is saved to the journal.

JrnBlocks

Property JrnBlocks As %Integer;

Journal Block Writes. Number of 64-KB journal blocks written to the journal file.

WDWake

Property WDWake As %Integer;

Indicates whether the system Write Daemon is running ('1') or not ('0')

WDQueueSize

Property WDQueueSize As %Integer;

The number of blocks waiting to be written by the Write Daemon

Methods

Sample

ClassMethod Sample() As SYS.Stats.Global

Instantiate the class and fill in current values for all properties.

ByDatabaseExecute

ClassMethod ByDatabaseExecute(ByRef qHandle As %Binary, Names As %List = "") As %Status [ Internal ]

Fetch PhysBlockReads and PhysBlockWrites collected for each database.

You may pass a $LIST of databases (directories) in 'Names' to select specific databases.

ByDatabaseClose

ClassMethod ByDatabaseClose(ByRef qHandle As %Binary) As %Status [ Internal, PlaceAfter = ByDatabaseExecute ]

ByDatabaseFetch

ClassMethod ByDatabaseFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) As %Status [ Internal, PlaceAfter = ByDatabaseExecute ]