-
Notifications
You must be signed in to change notification settings - Fork 12
HelpWtop
Tim edited this page Jul 5, 2013
·
2 revisions
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.
There are a few possible reasons:
- Your
LOG_FORMAT
is not matching your log file data. See installation notes for some common gotchas. - wtop can't read your log file. Make sure
LOG_ROOT
andLOG_FILE
are correct, and try runninglogrep -m tail
to see if anything pops out. - 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