Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Error Connecting to Remote JVM

1044925Oct 2 2013 — edited Oct 3 2013

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 ?

This post has been answered by Hirt-Oracle on Oct 2 2013
Jump to Answer

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 31 2013
Added on Oct 2 2013
11 comments
13,564 views