Java Mission Controller, Flight Recorder - Access denied
Dear Ivy Team
Doing some performance analysis since our app is using a lot of CPU. I've activated
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=9003 -Dcom.sun.management.jmxremote.login.config=jmx -Djava.security.auth.login.config=configuration/jaas.config -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.autodiscovery=true"
JAVA_OPTS="$JAVA_OPTS -Djava.rmi.server.hostname=<IP>"
When I connect with Java Mission Controller to Ivy 7 I get the following results :
- Start JMX Console : works
- Start Flight Recorder : Access denied! Invalid access level for requested MBeanServer operation.
java.lang.RuntimeException: Access denied! Invalid access level for requested MBeanServer operation.
at com.jrockit.mc.flightrecorder.controlpanel.ui.FlightRecorderProvider.refresh(FlightRecorderProvider.java:110)
at com.jrockit.mc.browser.views.JVMBrowserView$1.run(JVMBrowserView.java:100)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at
Caused by: java.lang.SecurityException: Access property for this identity should be similar to: readwrite create com.sun.management.MissionControl
at
....
According to https://community.oracle.com/thread/2588377 :
You need to ensure that the user you want to access the flight recorder has permission to create the relevant MBeans. You have probably defined the roles in the jmxremote.access file. Try adding:
<your-role-name-goes-here> readwrite \
create com.sun.management.*,com.oracle.jrockit.* \
unregister
=> where can I change this for Ivy ?
Thanks & Regards
John