I have written a command-line probe in java to communicate with a service since 
java was the language I was most comfortable with.  However, it was slow in 
performance.  This is probably due to the fact that java is a Just-in-time 
language and every time the probe runs, the JVM needs to interpret/compile the 
byte code in order to run.  The performance of this was much slower, i.e in the 
1/10th second range (x00 ms).  This is okay for maybe a few probes, but I am 
monitoring 40+ devices, at 30 seconds poll intervals, and the machine becomes 
noticeably slower with a noticeable increase in constant CPU utilization.  I 
suspect groovy will also suffer from the same problem due to it is a language 
that runs on top of the JVM.

I have since re-wrote the probe using TCP probe, and it was noticeably faster, 
i.e. in 1/100th seconds range, and no noticeable increase in CPU utilization.

I have also venture into python command line probes, and it is actually quite 
fast as well.  I am not familiar with python's architecture, but does python 
actually "cache" the interpreted/compiled script?  This python script is for 
something else, but it is also perform in the 1/100th seconds range.

Cheers,
Leonard Siu
Quantum Data Systems (H.K.) Ltd
http://www.quantum.com.hk

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Richard Brown
Sent: August-12-11 9:24 AM
To: InterMapper Discussion
Subject: Re: [IM-Talk] Re: Support for writing probes in groovy or other JSR223 
langs?


> I ended up using a JMX-JSON bridge and python scripts to do this instead, but 
> having pure JMX support in intermapper would be good too.

This is intriguing. Is there anything you'd be able to share (the probes, an 
outline of what tools you used, etc)? Thanks.

Rich Brown                    [email protected]
Dartware, LLC                 http://www.intermapper.com
66-7 Benning Street           Telephone: 603-643-9600
West Lebanon, NH 03784-3407   Fax: 
603-643-2289.+-j·!Š÷¬†Ûiÿü0Âf¢•ªÜ†+Þr‰¿Š{^®f©¥êíjY8ÒX¬µÖ«·«yÊ&ý:.žË›±Êâmë×¦j)m ‰íz³¦—«M©d¡÷åŠË]j»pj·œ

Reply via email to