How to use golang to connect to jmx of java service and retrieve exposed MBeans

115 Views Asked by At

The project needs to obtain jvm indicators and Dubbo indicators from the jmx of the service. The service implemented through java consumes more resources. It is hoped that the memory consumption can be reduced by rewriting in golang

But I don't know how to connect jmx -Dcom.sun.management.jmxremote.port through golang and get it from MBean.

I didn't find a suitable 3rd party library. Is there such a three-party library or other ways to achieve it?

Looking forward to your reply.

0

There are 0 best solutions below