I want to connect to remote JVM using JavaMissionControl.
Remote Machine :
java -version
java version "1.7.0_40"
Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode)
Remote application is started with following vm flags
-Dcom.sun.management.jmxremote.autodiscovery=true -XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:StartFlightRecording=duration=60s,filename=myrecording.jfr
Now i run JMC on my local machine and try to connect to remote JVM. I can connect to MBeansServer and browse everything there. But i can not access Flight Recorder data in my JMC. It gives following error :
java.lang.RuntimeException
at com.jrockit.mc.flightrecorder.controlpanel.ui.FlightRecorderProvider.refresh(FlightRecorderProvider.java:107)
at com.jrockit.mc.browser.views.JVMBrowserView$1.run(JVMBrowserView.java:99)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: com.jrockit.mc.rjmx.services.ServiceNotAvailableException
at com.jrockit.mc.rjmx.internal.DefaultConnectionHandle.getServiceOrThrow(DefaultConnectionHandle.java:350)
at com.jrockit.mc.flightrecorder.controlpanel.ui.FlightRecorderProvider.refreshRecordings(FlightRecorderProvider.java:119)
at com.jrockit.mc.flightrecorder.controlpanel.ui.FlightRecorderProvider.refresh(FlightRecorderProvider.java:98)
... 8 more
When i right click on FlightRecorder and select "Start Flight Recording", it throws error
Could not register the Mission Control MBean in the MBeanServer.
Could not register the Mission Control MBean in the MBeanServer.
Any ideas what is wrong here ?