MONITOR command: SERVSIZE, LSERVER and server number

From m204wiki
Jump to navigation Jump to search

Summary

Privileges
System administrator
Function
Displays information regarding servers defined to the Online. TSRVSIZE and SIZREQD are displayed for each server defined, and if the server is currently occupied by a user, standard user information is also provided.

TSRVSIZE - is the total server size defined using SERVSIZE, SERVGSZ, and SERVNSSZ. SIZREQD - is the total server size required using the viewable parameters LSERVER, LSERVERN, LSERVERG. Those parameters, in turn, are determined by the size of each of the server tables - LSTBL, LNTBL, LQTBL, LVTBL, etc. and whether they area allocated below-the-bar, above-the-bar or in the non-swappable, above-the-bar area.

Syntax

MONITOR (s1, s2, s3...) SERV [SL] [CHKP | SUBTRAN] [USERLIST] [ACTIVE|ACTV]

Where:

SERV Display information regarding all servers defined to the Online.
(s1, s2, s3...) SERV Display information for only the named servers defined to the Online.
SL Display the since-last statistics.
CHKP | SUBTRAN Display information regarding transaction checkpoints (CHKP) or both transaction and sub-transaction checkpoints (SUBTRAN). See MONITOR: Checkpoints-transaction and sub-transaction for more details and examples.
USERLIST Display the basic user line for every user who inhibits checkpoints.
ACTIVE | ACTV Display only the Online servers that have active users. An active user is one who is executing a command or running a request and that command or request has not yet completed. Such a user is not OFFI (OFF queue, invisible, blocked In) or OFFO (OFF queue, invisible, blocked Out) as shown by MONITOR ACTIVE.

Usage notes

The following syntax is supported:

MONITOR SERV MONITOR SERV SL MONITOR (s1,s2,s3...) MONITOR CHKP USERLIST SERV MONITOR SUBTRAN USERLIST SERV SL

Example

Only servers, in order by definition, are reported. If NSERVS=20, only twenty lines of output are produced. If any server is occupied by a user, standard user information is also provided:

USER SVR USERID TSRVSIZE SIZREQD FUNC CNCT CPU SEQIO QUE WT FLGS 1 111000 77400 WTUS 2 222000 117000 WTUS 5 3 CCAD01 128800 28792 EVAL 320 0.308 25 REDY 1 4 CCAD02 777000 97296 DISP 1 0.000 8 BLKI 3 60 5 85000 85000 WTUS 6 6 SUPERKLUGE 666000 117000 25 0.021 3814 RUNG 9 7 CCAB08 777000 747000 EVAL 0 0.202 3 BLKI 24 68 8 8 USER01 840000 47016 EDIT 94 0.003 81 BLKI 3 66

This display shows all servers (NSERVS=8), in order by definition, defined to this Online. Included on each line are the SERVSIZE for each server and the current number of bytes in use (LSERVER). Three servers, 1, 2, and 5, are waiting for user WTUS.