Not All MBeans Available in Confluence

I have a merge 5.10.6 on tomcat 8. In tomcat I have jmx installed:

CATALINA_OPTS = "- Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port = 6969 -Dcom.sun.management.jmxremote.ssl = false -Dcom.sun.management.jmxremote.authenticate = false $ {CATALINA_OPTS } "

and using jconsole trying to access MBeans Confluence. Unfortunately, only a few available MBeans are available:

  • Cachestatistics
  • Indexing statistics
  • MailTaskQueue
  • Schedulingstatistics
  • System Information

But I also need RequestMetrics ( https://confluence.atlassian.com/doc/live-monitoring-using-the-jmx-interface-150274182.html ).

What did I miss in my configuration?

+5
source share
2 answers

Your configuration is beautiful.

Invalid MBMan RequestMetrics is actually a known bug in Confluence since 5.9.2: https://jira.atlassian.com/browse/CONF-40442

You can vote for this issue to raise awareness of the atlas.

+1
source

I have the same MBeans in my evaluation merge version.

I have a file "confluense.jar" with "jmxContext.xml" inside.
jmxContext.xml (it contains a link to MBeanExporterWithUnregisterImpl ):

<bean id="exporter" class="com.atlassian.confluence.jmx.MBeanExporterWithUnregisterImpl"> <constructor-arg index="0" ref="eventPublisher"/> <constructor-arg index="1" ref="tenantAccessor"/> <property name="server" ref="mbeanServer"/> <property name="beans"> <map> <entry key="Confluence:name=MailTaskQueue"> <bean class="com.atlassian.confluence.jmx.TaskQueueWrapper"><constructor-arg ref="mailTaskQueue"/></bean> </entry> <entry key="Confluence:name=IndexingStatistics"> <bean class="com.atlassian.confluence.jmx.JmxIndexManagerWrapper"><constructor-arg ref="indexManager"/></bean> </entry> <entry key="Confluence:name=SchedulingStatistics"> <bean class="com.atlassian.confluence.jmx.JmxScheduledTaskWrapper"><constructor-arg ref="scheduler"/></bean> </entry> <entry key="Confluence:name=SystemInformation"> <bean class="com.atlassian.confluence.jmx.JmxSystemInfoWrapper"><constructor-arg ref="systemInformationService"/></bean> </entry> <entry key="Confluence:name=CacheStatistics"> <bean class="com.atlassian.confluence.jmx.JxmCacheStatisticsWrapper"> <constructor-arg ref="cacheStatisticsManager"/> </bean> </entry> </map> </property> <property name="exposeManagedResourceClassLoader" value="true"/> </bean> 

So, at least there is nothing wrong, because our installation does not support RequestMetrics mbean, and as far as we can see the RequestMetrics.class class inside confluence.jar, I think this is a licensing problem.

0
source

Source: https://habr.com/ru/post/1257837/


All Articles