|
|
|
|
|
by AdieuToLogic
3608 days ago
|
|
IMO, JMX extensions are one of the most
under-appreciated things that java and
jvm devs have but keep forgetting about
but its so powerful.
This is an excellent point which I cannot agree with more. When doing distributed systems using JVM's, I almost always reach for the excellent Metrics[0] library. It provides substantial functionality "out of the box" (gauges, timers, histograms, etc.) as well as exposing each metric to JMX. It also integrates with external measuring servers, such as Graphite[1], though that's not germane to this post.0 - http://metrics.dropwizard.io/3.1.0/ 1 - http://graphiteapp.org/ |
|
If you're just going to print the numbers out and look at them, it's very handy. But if you want to handle them further, which you really do, I'd avoid it. Put individual measurements in your logs, then scrape them out with Logstash or something and send them to Graphite for aggregation.