admin stats

Displays information and statistics about Replication Server operations.

Syntax

admin {stats | statistics} [, sysmon | "all" 
	| module_name [, inbound | outbound] [, display_name ]]
	[, server[, database]] | [instance_id] 
	[, {display |, save} [, obs_interval] [, sample_period]]

Parameters

Examples

Usage

  • There are three types of statistic collectors:
    • Observer – counts the number of times an event occurs. For example, Replication Server uses an observer to count the number of times a command from the RepAgent is observed.

    • Monitor – periodically samples a value. For example, Replication Server uses a monitor to sample the sizes of sent commands.

    • Counter – collects statistics not observed by monitors and observers. Counters usually accumulate a running total of a particular value, including the total number of milliseconds required to complete a particular task. For example, Replication Server uses a counter to accumulate the elapsed time between receiving two commands from the RepAgent.

    Observer, monitor, and counter watch four types of statistics: number of observations, total observed values, last observed values, and maximum observed values.

  • admin stats prints a report that includes this information:
    • Instance – a specific occurrence of a module.

    • Instance ID – the numeric identifier for a given module instance. For example, two different SQM instances may have instance IDs 102 and 103.

    • ModType/InstVal – in some cases, an instance may have multiple versions or module types. For example, a given SQM instance may have an inbound type and an outbound type. For SQM instances, inbound versions have a module type of 1 and outbound versions have a module type of 0.

    • Monitor, Observer, or Counter – displays the name of the statistics collector being observed. For example, SleepsWriteQ.

    • Obs – the number of observations of a statistics collector during an observation period.

    • Last – the last value observed during an observation period.

    • Max – the maximum value observed during an observation period.

    • Total – the sum of observed values during an observation period.

    • Avg ttl/obs – the average value observed in an observation period. This is calculated as Total/Obs.

    • Rate x/sec – the change, in a period of 1 second, observed during the given observation period. Observers calculate this as Obs/seconds in an observation period. Monitors and counters calculate this as Total/second in an observation period.

  • By default, admin stats reports values for the sysmon counters.

  • By default, admin stats does not report counters that show 0 (zero) observation. To change this behavior, set the stats_show_zero_counters configuration parameter on.

  • If statistics are displayed on the computer screen, they are not stored in the RSSD. Similarly, if statistics are stored in the RSSD, they are not displayed on screen.

  • If you use admin stats...display_name to display statistics for a particular counter, Replication Server always displays statistics for that counter, even if stats_sampling is off and the number of observations is zero.

  • Use admin stats with the independent module name to collect statistics for dependent modules. You cannot collect statistics using the dependent module name in the admin stats command.

    Independent Module

    Dependent Module

    Data Server Interface (DSI)

    DSI Executor (DSIEXEC)

    Data Server Interface (DSI)

    Active Object Statistics (AOBJ)

    Stable Queue Manager (SQM)

    SQM Reader (SQMR)

    Thread Synchronization (SYNC)

    SYNC Element (SYNCELE)

    For more information about Replication Server modules, see the Replication Server Administration Guide Volume 2.

Permissions

Any user may execute this command.

Related reference
configure replication server