How to connect to gromy’s JMX faster

I use the Weblogic example: http://groovy.codehaus.org/Groovy +And + JMX connects JMX to groovy

The problem is that the connection time is too long:

long time = System.currentTimeMillis();

    println System.currentTimeMillis() - time;
    def server = JMXConnectorFactory.connect(serviceURL,h).MBeanServerConnection
    println System.currentTimeMillis() - time;

I have about 200 groovy scripts Each script is doing something else, but it needs to be connected to JMX It takes about an hour or more when I want to perform all the operations Is there a choice how to do this faster?

Solution

So the answer is simple I need to use this project: http://kobo.github.io/groovyserv/

Then I created the class jmxsharedconection with a static method, I added the connection, and now it works faster

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>