Skip to main content

SYS.Stats.Resource

class SYS.Stats.Resource extends SYS.WSMon.wsResource

This class represents detailed system metrics captured for 'seizes' of system resources. Each instance of the class represents a different resource which controls access to a different part of the system code. Examples are 'Pid' for the internal process table, 'Lock' for locking structures, 'Stat' for statistics, etc.

The current values for each class instance may be fetched using the Query 'Sample', and then the current value of each property can be accessed.

For example:
  s sz="Name,Seize,Nseize,Aseize,Bseize,BusySet" ; list of properties
  s rset=##class(%ResultSet).%New("SYS.Stats.Resource:Sample")
  d rset.Execute()
  s len=$l(sz,",")
  ; list all resources and related seize counts
  while rset.Next() {
  	f i=1:1:len w rset.Data($p(sz,",",i)) w:i<len ","
  	w !
  }
  

Metrics for InterSystems IRIS instance resource contention

Property Inventory

Method Inventory

Properties

property Aseize as %Integer;
Number of Aseizes
Property methods: AseizeDisplayToLogical(), AseizeGet(), AseizeIsValid(), AseizeLogicalToDisplay(), AseizeNormalize(), AseizeSet(), AseizeXSDToLogical()
property Bseize as %Integer;
Number of Bseizes
Property methods: BseizeDisplayToLogical(), BseizeGet(), BseizeIsValid(), BseizeLogicalToDisplay(), BseizeNormalize(), BseizeSet(), BseizeXSDToLogical()
property BusySets as %Integer;
Number of BusySet
Property methods: BusySetsDisplayToLogical(), BusySetsGet(), BusySetsIsValid(), BusySetsLogicalToDisplay(), BusySetsNormalize(), BusySetsSet(), BusySetsXSDToLogical()
property Name as %String;
The name of the resource.
Property methods: NameDisplayToLogical(), NameGet(), NameIsValid(), NameLogicalToDisplay(), NameLogicalToOdbc(), NameNormalize(), NameSet()
property Nseize as %Integer;
Number of Nseizes
Property methods: NseizeDisplayToLogical(), NseizeGet(), NseizeIsValid(), NseizeLogicalToDisplay(), NseizeNormalize(), NseizeSet(), NseizeXSDToLogical()
property Seize as %Integer;
Number of Seizes
Property methods: SeizeDisplayToLogical(), SeizeGet(), SeizeIsValid(), SeizeLogicalToDisplay(), SeizeNormalize(), SeizeSet(), SeizeXSDToLogical()

Methods

classmethod DisplayClose(ByRef qHandle As %Binary) as %Status
classmethod DisplayExecute(ByRef qHandle As %Binary) as %Status
classmethod DisplayFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) as %Status
classmethod DisplaySortClose(ByRef qHandle As %Binary) as %Status
classmethod DisplaySortExecute(ByRef qHandle As %Binary) as %Status
classmethod DisplaySortFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) as %Status
classmethod Sample(Index As %Integer) as SYS.Stats.Resource
Instantiate the class for a specific resource and fill in current values for all properties. 'Index' is an integer from 1 to 'n' used to reference a specific resource. An index greater than 'n' returns a blank resource Name. To find a specific resource Name, you would loop through the Resource list starting at 1 until you find the Name (or reach a blank Name).

Allows for XML output of a single Resource instance.
classmethod SampleClose(ByRef qHandle As %Binary) as %Status
classmethod SampleExecute(ByRef qHandle As %Binary) as %Status
classmethod SampleFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) as %Status

Queries

query Display()
Selects Name As %String, Seize As %String, Nseize As %String, Aseize As %String, Bseize As %String, BusySet As %String
Sample counters for all Resource / SeizeTypes. Same as "Sample" query except numbers are formatted with separator characters.
query DisplaySort()
Selects Name As %String, Seize As %String, SeizeSort As %Integer, Nseize As %String, NseizeSort As %Integer, Aseize As %String, AseizeSort As %Integer, Bseize As %String, BseizeSort As %Integer, BusySet As %String, BusySetSort As %Integer
Sample counters for all Resource / SeizeTypes. Same as "Display" query except we've added "sort" columns, whih are the same number without formatting. The UI uses these extra columns to sort the display, as integers with "," separators get sorted as strings.
query Sample()
Selects Name As %String, Seize As %Integer, Nseize As %Integer, Aseize As %Integer, Bseize As %Integer, BusySet As %Integer
Sample counters for all Resource / SeizeTypes

Inherited Members

Inherited Methods

FeedbackOpens in a new tab