[solved] 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 :)
  7. asabet

    asabet New Member

    I'm using a script written by eva2000 on server with 4-core Litespeed. Does this information mean that I am getting activity only on core #4?

    Code:
    Litespeed Web server stats
    --------------------------------------------
    .rtreport
    -------------------------------------------------------------
    VERSION: LiteSpeed Web Server/Enterprise/4.2.20
    UPTIME: 01:22:00
    BPS_IN: 0, BPS_OUT: 0,
    SSL_BPS_IN: 0, SSL_BPS_OUT: 0
    MAXCONN: 8000, PLAINCONN: 0, AVAILCONN: 8000, IDLECONN: 0,
    MAXSSL_CONN: 2000, SSLCONN: 0, AVAILSSL: 2000
    MAXCONN: MAXSSL_CONN: 2000, PLAINCONN: 0, AVAILCONN: 8000,
    MAXCONN: IDLECONN: 0, SSLCONN: 0,
    REQ_RATE REQ_PROCESSING: 0, REQ_PER_SEC: 0.1, TOT_REQS: 18,
    REQ_RATE CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    -------------------------------------------------------------
    .rtreport.2
    -------------------------------------------------------------
    VERSION: LiteSpeed Web Server/Enterprise/4.2.20
    UPTIME: 01:22:00
    BPS_IN: 0, BPS_OUT: 0,
    SSL_BPS_IN: 0, SSL_BPS_OUT: 0
    MAXCONN: 8000, PLAINCONN: 0, AVAILCONN: 8000, IDLECONN: 0,
    MAXSSL_CONN: 2000, SSLCONN: 0, AVAILSSL: 2000
    MAXCONN: MAXSSL_CONN: 2000, PLAINCONN: 0, AVAILCONN: 8000,
    MAXCONN: IDLECONN: 0, SSLCONN: 0,
    REQ_RATE REQ_PROCESSING: 0, REQ_PER_SEC: 0.0, TOT_REQS: 0,
    REQ_RATE CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    -------------------------------------------------------------
    .rtreport.3
    -------------------------------------------------------------
    VERSION: LiteSpeed Web Server/Enterprise/4.2.20
    UPTIME: 01:22:00
    BPS_IN: 0, BPS_OUT: 0,
    SSL_BPS_IN: 0, SSL_BPS_OUT: 0
    MAXCONN: 8000, PLAINCONN: 0, AVAILCONN: 8000, IDLECONN: 0,
    MAXSSL_CONN: 2000, SSLCONN: 0, AVAILSSL: 2000
    MAXCONN: MAXSSL_CONN: 2000, PLAINCONN: 0, AVAILCONN: 8000,
    MAXCONN: IDLECONN: 0, SSLCONN: 0,
    REQ_RATE REQ_PROCESSING: 0, REQ_PER_SEC: 0.0, TOT_REQS: 1,
    REQ_RATE CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    -------------------------------------------------------------
    .rtreport.4
    -------------------------------------------------------------
    VERSION: LiteSpeed Web Server/Enterprise/4.2.20
    UPTIME: 01:22:01
    BPS_IN: 3, BPS_OUT: 63,
    SSL_BPS_IN: 0, SSL_BPS_OUT: 0
    MAXCONN: 8000, PLAINCONN: 4, AVAILCONN: 7996, IDLECONN: 3,
    MAXSSL_CONN: 2000, SSLCONN: 0, AVAILSSL: 2000
    MAXCONN: MAXSSL_CONN: 2000, PLAINCONN: 4, AVAILCONN: 7996,
    MAXCONN: IDLECONN: 3, SSLCONN: 0,
    REQ_RATE REQ_PROCESSING: 1, REQ_PER_SEC: 6.3, TOT_REQS: 25451,
    REQ_RATE CACHE_HITS_PER_SEC: 0.0, TOTAL_CACHE_HITS: 0
    [lsphp5]: CMAXCONN: 35, EMAXCONN: 35, POOL_SIZE: 10,
    [lsphp5]: INUSE_CONN: 1, IDLE_CONN: 9,
    [lsphp5]: WAITQUE_DEPTH: 0, REQ_PER_SEC: 5.4, TOT_REQS: 17228
    -------------------------------------------------------------
    
    

    EDIT: I saw someone else post something about this, and the advice was "pls check your listener in Admin Console and make sure both CPUs are bound."

    When I check listeners in admin console, I have no listeners at all - Listeners (0). What should I do to fix this?

    EDIT 2: I just added a listener like this:

    [​IMG]

    Is that right? And do I use my server IP address or 127.0.0.1?
    Last edited: Jan 23, 2015 at 9:24 PM
  8. asabet

    asabet New Member

    Well, that doesn't seem to have done anything. Still only one core out of four seeing any use.

    I see something under Listeners here:

    [​IMG]

    But how do I change the binding for those? Under my Listener tabs, I have nothing:

    [​IMG]
    Last edited: Jan 23, 2015 at 11:08 PM
  9. asabet

    asabet New Member

    OpenLitespeed has a setting under Server>General>Server Process>Number of Workers to set how many CPUs are being used by Litespeed. I don't see this setting on Litespeed Enterprise. Where do I set the number of cores being used?
  10. NiteWave

    NiteWave Administrator

    it's not able to set on enterprise edition.
    2 ways to know number of cores used:
    1) ps -ef|grep litespeed|wc
    in your case(4-CPU license), it'll be 5. including the parent litespeed process (running as root)
    2)check number of /tmp/lshttpd/.rtreport*
    1-CPU is 1, 2-CPU is 2, 4-CPU is 4. i.e., one core has a corresponding .rtreport file.
  11. asabet

    asabet New Member

    Thanks, NiteWave. Can you please look at my posts #7 and #8 above and help me understand why Litespeed (installed by my hosting company) is only using 1 core?
  12. NiteWave

    NiteWave Administrator

    it's because your site's traffic is low. only 1 core is enough to handle the traffic.
  13. asabet

    asabet New Member

    Got it, thank you.

Share This Page