[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Code / rocks to read JMX ?
- From: Marc Balmer <marc@...>
- Date: Tue, 30 Aug 2016 10:01:17 +0200
Hi
> Am 30.08.2016 um 09:46 schrieb Laurent FAILLIE <l_faillie@yahoo.com>:
>
> Hello,
>
> I wonder if there is a way to read JMX data from Lua ?
> I did some search but the few I found is forking a java sub process, solution I would like to avoid for performances purposes.
I don’t know about JMX, but when we had to use Java stuff, we created a module (in C) that creates and
controls a JVM instance (not in a separate process) using the Java native interface (JNI). That works like
a charm and is not to complicated to implement. You should then be able to run JMX stuff in the JVM
and query whatever you need from Lua.