[collectd] generic JMX plugin
octo at verplant.org
Mon Aug 17 10:56:41 CEST 2009
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.
Florian octo Forster
Hacker in training
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20090817/ffc9208d/attachment.pgp
More information about the collectd