<div dir="ltr">Hi !<br>&nbsp;&nbsp; I&#39;m working on the jmx plugin. At this moment I have a semi-operational plugin that check memory and threads of jvm.<br><br>&nbsp;&nbsp; The plugin work in this form:<br><br>On init<br>1.- Start a JVM with JNI interface.<br>
2.- For every host configuration, create a new java object JMXCollectdConnector.<br>3.- For each data in every host, we add JMXCollectdData object to this JMXCollectConnector.<br><br>On read<br>1.- For each host, we call the collect method of the JMXCollectdconnector object of this host (this call all the collect methos of the datas).<br>
<br>JMXCollectdData is a java interface class, we can create class that implements its. I make JMXCollectMemoryData and JMXCollectdThreadData to get this stats.<br><br>At this moment, I have problems to detect the java virtual machine and all includes and libs in the <a href="http://configure.in">configure.in</a> file .... the include and libs directory depends on platform and type of virtual machine ($JAVA_HOME/jre/lib/i386/client/libjvm.so or $JAVA_HOME/jre/lib/i386/server/libjvm.so for libs and $JAVA_HOME/jre/include/jni.h and $JAVA_HOME/jre/include/linux/jni_md.h). Anyone can help me ??<br>
<br>TODO:<br>check exceptions and error control<br>check if it&#39;s thread-safe<br>document it !<br><br><span dir="ltr" id=":13c">I hope that next week could send a patch</span><br><br>justo<br><br><div class="gmail_quote">
On Thu, Sep 11, 2008 at 6:34 PM, Florian Forster <span dir="ltr">&lt;<a href="mailto:octo@verplant.org">octo@verplant.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Justo,<br>
<br>
unless you specified Steve in the BCC field, he didn&#39;t get your mail.<br>
Please use the `group reply&#39; or `reply to all&#39; feature of your mail<br>
client when answering to mails of the mailing list. That way the mail<br>
will be send to the original author and everybody in the CC field<br>
(including the list).<br>
<br>
I&#39;ve attached your complete mail as reference for Steve.<br>
<br>
Regards,<br>
-octo<br>
<div class="Ih2E3d"><br>
On Thu, Sep 11, 2008 at 11:27:41AM +0200, Justo Alonso wrote:<br>
&gt; Hi !<br>
&gt;<br>
&gt; &nbsp; I&#39;m working on a JNI-JMX plugin. It&#39;s work as snmp plugin ... you define<br>
&gt; instances (a jvm with jmx on) and for each instance the beans that collectd<br>
&gt; will pull it.<br>
&gt;<br>
&gt; &nbsp; On start collectd, we up one jni connection, and foreach instance, we<br>
&gt; create a new java JMXConnector (with the instance parameters). On pull,<br>
&gt; foreach instance, we call the JMXConnector get method and pass it to<br>
&gt; collectd.<br>
&gt;<br>
&gt; &nbsp;I hope to send to the list a alpha-alpha version in two weeks.<br>
&gt;<br>
&gt; thanks in advance, and sorry for me english<br>
&gt;<br>
&gt; justo<br>
</div><div><div></div><div class="Wj3C7c">--<br>
Florian octo Forster<br>
Hacker in training<br>
GnuPG: 0x91523C3D<br>
<a href="http://verplant.org/" target="_blank">http://verplant.org/</a><br>
</div></div><br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.6 (GNU/Linux)<br>
<br>
iD8DBQFIyUh4Hdggu3Q05IYRAum3AJ9CLBrkFNycnQIwKLc+ncI68+DHJwCfZvzs<br>
TTN1USQm5JKzzWF0JtAJUVw=<br>
=LG1t<br>
-----END PGP SIGNATURE-----<br>
<br></blockquote></div><br></div>