home‎ > ‎monitoring‎ > ‎

infx onstat

Run the informix onstat utility

usage

infx onstat params
  required
    params - list the parameters to pass to onstat

example

demo1@bobii:/home/informix>infx onstat params=-pu

IBM Informix Dynamic Server Version 11.70.FC4IE -- On-Line -- Up 2 days 01:55:20 -- 223688 Kbytes

Userthreads
address          flags   sessid   user     tty      wait             tout locks nreads   nwrites
4c1b0028         ---P--D 1        informix -        0                0    0     528      466
4c1b0870         ---P--F 0        informix -        0                0    0     0        129629
4c1b10b8         ---P--F 0        informix -        0                0    0     0        135829
4c1b1900         ---P--F 0        informix -        0                0    0     0        129241
4c1b2148         ---P--F 0        informix -        0                0    0     0        132438
4c1b2990         ---P--F 0        informix -        0                0    0     0        132555
4c1b31d8         ---P--F 0        informix -        0                0    0     0        132752
4c1b3a20         ---P--F 0        informix -        0                0    0     0        133469
4c1b4268         ---P--F 0        informix -        0                0    0     0        132126
4c1b4ab0         ---P--- 7        informix -        0                0    0     0        118737
4c1b52f8         ---P--B 8        informix -        0                0    0     1118770  128
4c1b5b40         Y--P--D 9        informix -        4e1edf88         0    0     2442184  0
4c1b6bd0         ---P--D 13       informix -        0                0    0     0        1
4c1b7c60         ---P--D 14       informix -        0                0    0     14       0
4c1b84a8         ---P--- 25       informix -        0                0    1     386      306
4c1b8cf0         ---P--- 24       informix -        0                0    1     240      225
4c1b9538         ---P--- 23       informix -        0                0    2     125      294
4c1bae10         Y--P--D 29       informix -        442659b0         0    0     0        0
 18 active, 128 total, 31 maximum concurrent

Profile
dskreads   pagreads   bufreads   %cached dskwrits   pagwrits   bufwrits   %cached
10083653   12160523   158835380  93.65   923860     1522663    1948459    53.10

isamtot    open       start      read       write      rewrite    delete     commit     rollbk
133024010  104652     55518      71202460   182206     258294     18000      14486      2

gp_read    gp_write   gp_rewrt   gp_del     gp_alloc   gp_free    gp_curs
0          0          0          0          0          0          0

ovlock     ovuserthread ovbuff     usercpu  syscpu   numckpts   flushes
0          0            0          1177.02  150.97   24         54

bufwaits   lokwaits   lockreqs   deadlks    dltouts    ckpwaits   compress   seqscans
165719     294        526670101  86         0          31         70037      21646

ixda-RA    idx-RA     da-RA      logrec-RA  RA-pgsused lchwaits
0          1052518    11006275   0          9677411    207426

Pass multiple parameters

demo1@bobii:/home/informix>infx onstat params=-g+sql,-g+ses

BM Informix Dynamic Server Version 11.70.FC4IE -- On-Line -- Up 2 days 01:56:21 -- 223688 Kbytes
onstat>
IBM Informix Dynamic Server Version 11.70.FC4IE -- On-Line -- Up 2 days 01:56:21 -- 223688 Kbytes


Sess       SQL            Current            Iso Lock       SQL  ISAM F.E.
Id         Stmt type      Database           Lvl Mode       ERR  ERR  Vers  Explain
25                        sysadmin           DR  Wait 5     0    0    -     Off
24                        sysadmin           DR  Wait 5     0    0    -     Off
23                        sysadmin           DR  Wait 5     0    0    -     Off
onstat>
IBM Informix Dynamic Server Version 11.70.FC4IE -- On-Line -- Up 2 days 01:56:21 -- 223688 Kbytes

session                                      #RSAM    total      used       dynamic
id       user     tty      pid      hostname threads  memory     memory     explain
676      informix -        0        -        0        16384      12352      off
25       informix -        0        -        1        634880     451344     off
24       informix -        0        -        1        565248     450232     off
23       informix -        0        -        1        569344     450912     off
5        informix -        0        -        0        16384      12352      off
4        informix -        0        -        0        16384      13960      off
3        informix -        0        -        0        16384      13960      off
2        informix -        0        -        0        16384      12352      off
onstat>

notes

  • add instance name to command to run against any instance
  • add instance@host to command to run against any remote instance