JMX Call with non-HTTP

219 views
Skip to first unread message

Venkata Madhusudhan Rao V

unread,
Sep 14, 2020, 11:53:12 AM9/14/20
to golang-nuts
Hi All,
I have a java-based application with JMX enabled. I was able to remotely connected to the java-based application from JConsole using jmx url (service:jmx:rmi:///jndi/rmi://localhost:8888/jmxrmi). 
Now, I want to connect from Go-client to capture the metrics. 
I looked at Jolokia JMX/HTTP wrapper for Golang, but it uses http protocol to get connect. Is there any library available in GO to get connected for the provided JMX url?

Thanks & Regards
Venkata Madhu

Henrik Johansson

unread,
Sep 14, 2020, 12:11:13 PM9/14/20
to Venkata Madhusudhan Rao V, golang-nuts
Newrelic has some tools for this but I think they require agents installed in the Java side.

I think you are better off going for the Jolokia solution but perhaps there is something you can use from Newrelic.

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/ed421a0e-6a0c-410e-9e3a-aff7c2e5030cn%40googlegroups.com.

Robert Engels

unread,
Sep 14, 2020, 3:05:05 PM9/14/20
to Henrik Johansson, Venkata Madhusudhan Rao V, golang-nuts
You need a bridge. RMI requires Java. if you use a subset you can use Corba/IIOP clients. 

On Sep 14, 2020, at 11:11 AM, Henrik Johansson <dahan...@gmail.com> wrote:



Robert Engels

unread,
Sep 14, 2020, 3:06:44 PM9/14/20
to Henrik Johansson, Venkata Madhusudhan Rao V, golang-nuts
Search for Java RMI-IIOP. 

On Sep 14, 2020, at 2:04 PM, Robert Engels <ren...@ix.netcom.com> wrote:



Henrik Johansson

unread,
Sep 14, 2020, 3:14:26 PM9/14/20
to Robert Engels, Venkata Madhusudhan Rao V, golang-nuts
The Jolokia solution is quite neat if you can control the running JVM since that bridge then runs inside the same JVM as an agent.
Many servers and services offer to configure the command line for this and other similar purposes.
Reply all
Reply to author
Forward
0 new messages