Overhead of collecting performance stats and publishing in JMX

1,196 views
Skip to first unread message

Otis Gospodnetic

unread,
Dec 17, 2011, 4:23:53 PM12/17/11
to metric...@googlegroups.com
Hello,

I'm considering using this metrics package and I'm wondering if you have any idea or thoughts around the overhead of gathering performance stats.
I'm looking to gather information about performance of certain methods and publish those stats in JMX.

Thanks,
Otis

Coda Hale

unread,
Dec 17, 2011, 4:46:08 PM12/17/11
to metric...@googlegroups.com
At Yammer we use Metrics extensively and haven't noticed any performance drawbacks, even in areas sensitive to performance.

A single thread on my laptop can update a TimerMetric (which is composed of a histogram and a meter) roughly 4 million times a second.

Histograms (especially the ExponentiallyDecayingSample-backed ones) are the hot spot there.

--
Coda Hale
http://codahale.com

Reply all
Reply to author
Forward
0 new messages