Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jakub Holy
committed
May 15, 2012
0 parents
commit 0743ddd
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
INTRO | ||
Light-weight, minimalistic, low-overhead lib for collecting and publishing performance statistics in production systems. | ||
Calls to the lib are usually injected via AOP. | ||
|
||
Overview: | ||
- code calls Statistics.recordMeasurement(String metricName, long duration [, unit]) | ||
- the measurement is added to a list of values to process and the call returns | ||
- a background thread processes new measurement, updating aggregate values etc. | ||
- the collected values are made available via publishers such as JmxPublisher and PeriodicalLogPublisher | ||
|
||
USAGE | ||
|
||
Statistics.recordMeasurement("myBizMethod", 60); | ||
// => asynch. stored and updated count, avg, min, max, std.dev, ... | ||
// Computation strategy: rolling window x all values | ||
|
||
STATS | ||
|
||
- ignore lowest and highest N values (random extreems far behind normal values) | ||
- count avg, 10 min, 10 max, std.dev. | ||
- running avg/dev or based on all values | ||
|
||
ATTRS OF INTEREST | ||
|
||
Count attribute The number of times this event has occurred. | ||
ErrorCount attribute The number of times this event ended in error. | ||
AverageTime attribute The average execution time, in the selected unit. | ||
MaxTime attribute The maximum execution time, in the selected unit. | ||
MinTime attribute The minimum execution time, in the selected unit. | ||
StandardDeviation attribute The standard deviation from the mean, in the selected unit. | ||
LastInvocation attribute The most recent date and time at which this event occurred. | ||
Units attribute The unit of measure for max, min, average, and stddev. Valid values are seconds, milliseconds, and nanoseconds. Defaults to milliseconds if unspecified. | ||
reset operation Reset statistics for this type of event. | ||
|