Skip to content
Tim edited this page Jul 4, 2013 · 2 revisions

The Output

wtop outputs stats every 5 seconds, averaged over the last 60 seconds.

wtop [-c CFG_FILE]

   -c CFG_FILE       feed wtop a custom config file. By default it will use /etc/wtop.cfg

For example:

$ wtop
                         req/s   avg   min              max     3xx     4xx     5xx     slow
    ----------------------------------------------------------------------------------------
                home      0.20   126   26  .........*   543      --      --      --      --
             landing     12.60    62    0  @*........  1319    1.20      --      --    0.07
              search      0.93   597   92  **........  1764      --      --      --      --
              signup      0.20   285   22  @*.......*  1415      --      --      --      --
                 css      1.63     9    0  #.........   294    0.40      --      --      --
               image      3.40     2    0  #.........   192    0.40    0.07      --      --
                  js      1.63    46    0  @*........   471    0.67      --      --    0.03

The first column is the "class' of the url. (Classes are defined in wtop.cfg). req/s is the average number of successful (status code 200-299) requests that took less than 5 seconds.

avg is the average response time, in milliseconds. min and max are self-explanatory.

The garbage between min/max is a histogram of response times, to give you an idea of the variance.

I don't see anything!

There are a few possible reasons:

  1. Your LOG_FORMAT is not matching your log file data. See installation notes for some common gotchas.
  2. wtop can't read your log file. Make sure LOG_ROOT and LOG_FILE are correct, and try running logrep -m tail to see if anything pops out.
  3. Your traffic volume may be too low to register on wtop. By default wtop will not show traffic for URL classes whose volume is less than 0.2 requests per second. See the MIN_RPS variable in wtop.cfg
Clone this wiki locally