tomdz/jruby-rack-metrics — pull request #2 by nicobrevin (2013-04-03 22:12:33+00:00)
Title: remove jmx_enabled option that causes memory leak

I've noticed that using the jmx_enabled option causes a memory leak. Each request creates a new JmxReporter, which is registered with the MetricsRegistry and never removed.

This commit takes away the jmx_enabled option in exchange for helper methods that let you set up a default jmx reporter during rack up or however you initialise your application.