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