Understanding .rtreport stats ?

Discussion in 'General' started by eva2000, Dec 17, 2011.

  1. eva2000

    eva2000 Member

    Hi guys

    I'm trying to understand the output from .rtreport info. I wrote a bash script to just grab the info but noticed on 4 cpu license litespeed, the lsphp5 stats only come attached to one file .rtreport.2 which is cpu #2 right ?

    .rtreport = cpu #1
    .rtreport.2 = cpu #2
    .rtreport.3 = cpu #3
    .rtreport.4 = cpu #4

    Is this correct ? So is lsphp5 always just attached to .rtreport.2 ?

    I see with my VPS Litespeed license with 1 cpu, i only see .rtreport and lsphp5 is attached there.

    Trying to understand the stats and why lsphp5 stats is only shown in .rtreport.2 ?

    sample output

    Code:
    cat /tmp/lshttpd/.rtreport*
    Code:
    VERSION: LiteSpeed Web Server/Enterprise/4.1.8
    UPTIME: 00:07:32
    BPS_IN: 0, BPS_OUT: 0, SSL_BPS_IN: 0, SSL_BPS_OUT: 0
    MAXCONN: 2000, MAXSSL_CONN: 500, PLAINCONN: 0, AVAILCONN: 2000, IDLECONN: 0, SSLCONN: 0, AVAILSSL: 500
    REQ_RATE []: REQ_PROCESSING: 0, REQ_PER_SEC: 0.0, TOT_REQS: 0, CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    REQ_RATE [APVH_hostname.domainname.net]: REQ_PROCESSING: 0, REQ_PER_SEC: 0.0, TOT_REQS: 0, CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    REQ_RATE [_AdminVHost]: REQ_PROCESSING: 0, REQ_PER_SEC: 0.0, TOT_REQS: 0, CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    REQ_RATE [APVH_*_host2.domainname.net]: REQ_PROCESSING: 0, REQ_PER_SEC: 0.0, TOT_REQS: 2, CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    REQ_RATE [APVH_host2.domainname.net]: REQ_PROCESSING: 0, REQ_PER_SEC: 0.0, TOT_REQS: 0, CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    BLOCKED_IP: 
    EOF
    
    VERSION: LiteSpeed Web Server/Enterprise/4.1.8
    UPTIME: 00:07:31
    BPS_IN: 3, BPS_OUT: 5, SSL_BPS_IN: 0, SSL_BPS_OUT: 0
    MAXCONN: 2000, MAXSSL_CONN: 500, PLAINCONN: 12, AVAILCONN: 1988, IDLECONN: 12, SSLCONN: 0, AVAILSSL: 500
    REQ_RATE []: REQ_PROCESSING: 0, REQ_PER_SEC: 3.7, TOT_REQS: 684, CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    REQ_RATE [APVH_hostname.domainname.net]: REQ_PROCESSING: 0, REQ_PER_SEC: 3.7, TOT_REQS: 683, CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    REQ_RATE [_AdminVHost]: REQ_PROCESSING: 0, REQ_PER_SEC: 0.0, TOT_REQS: 0, CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    REQ_RATE [APVH_*_host2.domainname.net]: REQ_PROCESSING: 0, REQ_PER_SEC: 0.0, TOT_REQS: 0, CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    REQ_RATE [APVH_host2.domainname.net]: REQ_PROCESSING: 0, REQ_PER_SEC: 0.0, TOT_REQS: 0, CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    EXTAPP [LSAPI] [] [lsphp5]: CMAXCONN: 40, EMAXCONN: 40, POOL_SIZE: 3, INUSE_CONN: 0, IDLE_CONN: 3, WAITQUE_DEPTH: 0, REQ_PER_SEC: 0.9, TOT_REQS: 351
    BLOCKED_IP: 
    EOF
    
    VERSION: LiteSpeed Web Server/Enterprise/4.1.8
    UPTIME: 00:07:32
    BPS_IN: 0, BPS_OUT: 0, SSL_BPS_IN: 0, SSL_BPS_OUT: 0
    MAXCONN: 2000, MAXSSL_CONN: 500, PLAINCONN: 0, AVAILCONN: 2000, IDLECONN: 0, SSLCONN: 0, AVAILSSL: 500
    REQ_RATE []: REQ_PROCESSING: 0, REQ_PER_SEC: 0.0, TOT_REQS: 0, CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    REQ_RATE [APVH_hostname.domainname.net]: REQ_PROCESSING: 0, REQ_PER_SEC: 0.0, TOT_REQS: 0, CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    REQ_RATE [_AdminVHost]: REQ_PROCESSING: 0, REQ_PER_SEC: 0.0, TOT_REQS: 0, CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    REQ_RATE [APVH_*_host2.domainname.net]: REQ_PROCESSING: 0, REQ_PER_SEC: 0.0, TOT_REQS: 0, CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    REQ_RATE [APVH_host2.domainname.net]: REQ_PROCESSING: 0, REQ_PER_SEC: 0.0, TOT_REQS: 0, CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    BLOCKED_IP: 
    EOF
    
    VERSION: LiteSpeed Web Server/Enterprise/4.1.8
    UPTIME: 00:07:32
    BPS_IN: 0, BPS_OUT: 0, SSL_BPS_IN: 0, SSL_BPS_OUT: 0
    MAXCONN: 2000, MAXSSL_CONN: 500, PLAINCONN: 0, AVAILCONN: 2000, IDLECONN: 0, SSLCONN: 0, AVAILSSL: 500
    REQ_RATE []: REQ_PROCESSING: 0, REQ_PER_SEC: 0.0, TOT_REQS: 0, CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    REQ_RATE [APVH_hostname.domainname.net]: REQ_PROCESSING: 0, REQ_PER_SEC: 0.0, TOT_REQS: 0, CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    REQ_RATE [_AdminVHost]: REQ_PROCESSING: 0, REQ_PER_SEC: 0.0, TOT_REQS: 0, CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    REQ_RATE [APVH_*_host2.domainname.net]: REQ_PROCESSING: 0, REQ_PER_SEC: 0.0, TOT_REQS: 0, CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    REQ_RATE [APVH_host2.domainname.net]: REQ_PROCESSING: 0, REQ_PER_SEC: 0.0, TOT_REQS: 0, CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    BLOCKED_IP: 
    EOF
    From my script

    Code:
    ./litestat.sh 
    Code:
    .rtreport
    -------------------------------------------------------------
    VERSION: LiteSpeed Web Server/Enterprise/4.1.8
    UPTIME: 00:07:34
    BPS_IN: 0, BPS_OUT: 0,
    SSL_BPS_IN: 0, SSL_BPS_OUT: 0
    MAXCONN: 2000, PLAINCONN: 0, AVAILCONN: 2000, IDLECONN: 0,
    MAXSSL_CONN: 500, SSLCONN: 0, AVAILSSL: 500
    REQ_RATE REQ_PROCESSING: 0 REQ_PER_SEC: 0 TOT_REQS: 2
    CACHE_HITS_PER_SEC: 0 TOTAL_CACHE_HITS: 0
    -------------------------------------------------------------
    .rtreport.2
    -------------------------------------------------------------
    VERSION: LiteSpeed Web Server/Enterprise/4.1.8
    UPTIME: 00:07:34
    BPS_IN: 3, BPS_OUT: 5,
    SSL_BPS_IN: 0, SSL_BPS_OUT: 0
    MAXCONN: 2000, PLAINCONN: 16, AVAILCONN: 1984, IDLECONN: 16,
    MAXSSL_CONN: 500, SSLCONN: 0, AVAILSSL: 500
    REQ_RATE REQ_PROCESSING: 0 REQ_PER_SEC: 7.4 TOT_REQS: 1367
    CACHE_HITS_PER_SEC: 0 TOTAL_CACHE_HITS: 0
    [lsphp5]: CMAXCONN: 40, EMAXCONN: 40, POOL_SIZE: 3,
    [lsphp5]: INUSE_CONN: 0, IDLE_CONN: 3,
    [lsphp5]: WAITQUE_DEPTH: 0, REQ_PER_SEC: 0.9, TOT_REQS: 351
    -------------------------------------------------------------
    .rtreport.3
    -------------------------------------------------------------
    VERSION: LiteSpeed Web Server/Enterprise/4.1.8
    UPTIME: 00:07:34
    BPS_IN: 0, BPS_OUT: 0,
    SSL_BPS_IN: 0, SSL_BPS_OUT: 0
    MAXCONN: 2000, PLAINCONN: 0, AVAILCONN: 2000, IDLECONN: 0,
    MAXSSL_CONN: 500, SSLCONN: 0, AVAILSSL: 500
    REQ_RATE REQ_PROCESSING: 0 REQ_PER_SEC: 0 TOT_REQS: 0
    CACHE_HITS_PER_SEC: 0 TOTAL_CACHE_HITS: 0
    -------------------------------------------------------------
    .rtreport.4
    -------------------------------------------------------------
    VERSION: LiteSpeed Web Server/Enterprise/4.1.8
    UPTIME: 00:07:34
    BPS_IN: 0, BPS_OUT: 0,
    SSL_BPS_IN: 0, SSL_BPS_OUT: 0
    MAXCONN: 2000, PLAINCONN: 0, AVAILCONN: 2000, IDLECONN: 0,
    MAXSSL_CONN: 500, SSLCONN: 0, AVAILSSL: 500
    REQ_RATE REQ_PROCESSING: 0 REQ_PER_SEC: 0 TOT_REQS: 0
    CACHE_HITS_PER_SEC: 0 TOTAL_CACHE_HITS: 0
    -------------------------------------------------------------
    
    for single cpu VPS license

    Code:
    .rtreport
    -------------------------------------------------------------
    VERSION: LiteSpeed Web Server/Enterprise/4.1.8
    UPTIME: 07:36:36
    BPS_IN: 0, BPS_OUT: 0,
    SSL_BPS_IN: 0, SSL_BPS_OUT: 0
    MAXCONN: 2000, PLAINCONN: 0, AVAILCONN: 2000, IDLECONN: 0,
    MAXSSL_CONN: 500, SSLCONN: 0, AVAILSSL: 500
    REQ_RATE REQ_PROCESSING: 0 REQ_PER_SEC: 0 TOT_REQS: 2826
    CACHE_HITS_PER_SEC: 0 TOTAL_CACHE_HITS: 0
    [lsphp5]: CMAXCONN: 35, EMAXCONN: 35, POOL_SIZE: 2,
    [lsphp5]: INUSE_CONN: 0, IDLE_CONN: 2,
    [lsphp5]: WAITQUE_DEPTH: 0, REQ_PER_SEC: 0.0, TOT_REQS: 772
    -------------------------------------------------------------
    thanks
  2. eva2000

    eva2000 Member

    Also is the first line of REQ_RATE []:, the total for the subsequent lines ? Because, i added all the REQ_RATE lines together which i don't think is correct ?

    this first line

    Code:
    REQ_RATE []: REQ_PROCESSING: 0, REQ_PER_SEC: 3.7, TOT_REQS: 684, CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    
    
    sum/total of the subsequent lines ?

    Code:
    REQ_RATE [APVH_hostname.domainname.net]: REQ_PROCESSING: 0, REQ_PER_SEC: 3.7, TOT_REQS: 683, CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    REQ_RATE [_AdminVHost]: REQ_PROCESSING: 0, REQ_PER_SEC: 0.0, TOT_REQS: 0, CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    REQ_RATE [APVH_*_host2.domainname.net]: REQ_PROCESSING: 0, REQ_PER_SEC: 0.0, TOT_REQS: 0, CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    REQ_RATE [APVH_host2.domainname.net]: REQ_PROCESSING: 0, REQ_PER_SEC: 0.0, TOT_REQS: 0, CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    
    Last edited: Dec 17, 2011
  3. Lauren

    Lauren LiteSpeed Staff Staff Member

    only one process got traffic for LSPHP, so only showed up in one file. If you look at a live site, you'll see values in all 4 files.
    You can look at the stat screen to understand the numbers, it's calculated from the summary of all rtreports.
  4. eva2000

    eva2000 Member

    Thanks Lauren for clarification on lsphp5 instances. Still not clear on individual .rtreports* REQ_RATE lines

    is the first line in individual cpu reports (bold) the total of the subsequent lines ?

    Last edited: Dec 18, 2011
  5. NiteWave

    NiteWave Administrator

    should be -- first line is for server level requests, others for virtual hosts.
  6. eva2000

    eva2000 Member

    Thanks Gary, makes it easier than having to total up all lines for each column :)

Share This Page