[collectd] generic JMX plugin
msporleder at gmail.com
Mon Aug 17 17:09:11 CEST 2009
On Mon, Aug 17, 2009 at 4:56 AM, Florian Forster<octo at verplant.org> wrote:
> On Wed, Aug 12, 2009 at 02:30:02PM +0200, Florian Forster wrote:
>> The only work-around I can think of right now it to delay loading of
>> classes and parsing of the configuration until after the fork. The
>> plugins can still complain about invalid configuration, but they won't
>> have access to STDOUT / STDERR anymore.
> I've just implemented this: The Java plugin now copies the configuration
> blocks and does nothing else while configuring. When the `init' callback
> is called, it begins to parse the configuration and starts the JVM.
> Since the `init' callbacks are called after the daemon forked to the
> background, the JVM doesn't loose its threads and everything works like
> it did when running in the foreground.
> It'd be great if someone else could try the updated version and tell me
> whether it's working somewhere else, too.
My initial testing shows this to work. Also- it looks like you moved
it into the master branch.
Can someone else give it a go?
More information about the collectd