[collectd] Problem with java plugin

Paulo Silva paulojjs at gmail.com
Sat Jan 11 11:38:58 CET 2014


Hi,

I think I've found the problem.

After recompiling collectd with debug mode on I was able to notice some
difference between the data sent with and without the java plugin:

(with the java plugin:)
[2014-01-11 10:31:46] [debug] write_graphite plugin: [x.x.x.x]:2003 (tcp)
buf 946/1428 (66,2 %) "server.memory.memory-buffered 183586816,000000
1389436306
[2014-01-11 10:31:46] [debug] write_graphite plugin: [x.x.x.x]:2003 (tcp)
buf 1087/1428 (76,1 %) "server.memory.memory-free 5780836352,000000
1389436306
[2014-01-11 10:31:46] [debug] write_graphite plugin: [x.x.x.x]:2003 (tcp)
buf 1149/1428 (80,5 %) "server..memory.memory-cached 1248223232,000000
1389436306
[2014-01-11 10:31:46] [debug] write_graphite plugin: [x.x.x.x]:2003 (tcp)
buf 1288/1428 (90,2 %) "server.memory.memory-used 1144266752,000000
1389436306

(without the java plugin:)
[2014-01-11 10:33:32] [debug] write_graphite plugin: [x.x.x.x]:2003 (tcp)
buf 416/1428 (29.1 %) "server.memory.memory-buffered 183586816.000000
1389436412
[2014-01-11 10:33:32] [debug] write_graphite plugin: [x.x.x.x]:2003 (tcp)
buf 476/1428 (33.3 %) "server.memory.memory-used 1145851904.000000
1389436412
[2014-01-11 10:33:32] [debug] write_graphite plugin: [x.x.x.x]:2003 (tcp)
buf 538/1428 (37.7 %) "server.memory.memory-cached 1248362496.000000
1389436412
[2014-01-11 10:33:32] [debug] write_graphite plugin: [x.x.x.x]:2003 (tcp)
buf 598/1428 (41.9 %) "server.memory.memory-free 5779111936.000000
1389436412

So it seams that when I load the java plugin some of the other plugins
start using my locale setting to display numbers (I'm Portuguese and we use
"," instead of "." as a decimal mark) so I fixed the problem running this
before starting collectd:

unset LC_NUMERIC LANG

Should I open a bug report for this?


2014/1/11 Paulo Silva <paulojjs at gmail.com>

> Hi,
>
> I'm using collectd to push data to graphite (using collect 5.4.0).
>
> I was able configure it to show most of the information I wanted about a
> server (memory, cpu utilization, number of processes, network and disk
> activity).
>
> Since the server has a Tomcat running I used the java plugin to collect
> information using JMX. Everything seemed to work until I noticed that when
> I activate the java plugin some of the other data seems to stop working.
>
> After doing several tests I came to the conclusion that a simple
> configuration like this:
>
> LoadPlugin java
> <Plugin "java">
>   JVMArg
> "-Djava.class.path=/usr/share/collectd/java/collectd-api.jar:/usr/share/collectd/java/generic-jmx.jar"
>   LoadPlugin "org.collectd.java.GenericJMX"
> </Plugin>
>
> Is enough to make some other plugins stop working (for now I have notice
> that this plugins affects the processes, memory and apache plugins). From
> my tests I was able to verify that the missing data isn't being sent to
> graphite but I don't see any errors on the log.
>
> Anyone had this problem before or has any idea on how to fix this?
>
> Thanks
> --
> Paulo Silva <paulojjs at gmail.com>
>



-- 
Paulo Silva <paulojjs at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20140111/abec8d11/attachment.html>


More information about the collectd mailing list