understand java metric library units in jvisualVM -
basically trying understand oneminuterate
, rateunit
of metric java library
so have hit server login
method 51 request using jmeter , trying make sense of data.
1 count
gives total number of times method has been called.
but oneminrate
, rateunit
? , event here ?
edit please throw light on other attributes please
the metrics library has pretty documentation on this. output, appears using timer
in code. from docs, can see timer "is histogram of duration of type of event , meter of rate of occurrence." note docs provide links both meter , histogram.
from docs see that, "meters measure rate of events in few different ways. mean rate average rate of events. it’s useful trivia, represents total rate application’s entire lifetime (e.g., total number of requests handled, divided number of seconds process has been running), doesn’t offer sense of recency. luckily, meters record 3 different exponentially-weighted moving average rates: 1-, 5-, , 15-minute moving averages."
and, "histogram metrics allow measure not easy things min, mean, max, , standard deviation of values, quantiles median or 95th percentile."
so, putting , looking @ you've pasted know:
- your login code has been hit total of 78 times
- in last minute, 5 minutes, , 15 minutes code has been hit 0 times/second (we know it's events/second because of rateunit)
- the median time between timer being started , stopped (you'll have @ code see timer gets stopped see what's being measured) 0.286543 milliseconds (we know unit milliseconds because of durationunit)
- the 99th percentile time (e.g. 99% of calls took less time this) 10.449777 milliseconds
- etc.
the thing that's tricky , not terribly defined in above bullet #2 rates. stated in docs, these exponentially weighted moving averages 1 minute rate, example, includes information rate more 1 minute ago. 1-minute rate, weights in average have been set matters data in past minute. that's not terribly clear , docs don't clarify. part can think of these rate, in events/second, in last 1 minute, 5 minutes, , 15 minutes. if need know precise definition, can find weights being used in source code.
Comments
Post a Comment