Details
-
Bug
-
Resolution: Done
-
Major
-
7.2.2.redhat
-
None
Description
The activemq-plugin-7.2.2.redhat-024.jar management plug-in appears to have a bug in it that is causing the "Memory Percent Usage" measurement to be 100 times larger then what it really is. This was seen in the Queue resource but I am guessing from the plug-in descriptor, the same issue may appear in the Topic and Broker resources too:
<!-- Services for ActiveMQ Brokers, Connector, Topic, Queues. -->
<service name="Broker" discovery="ActiveMQDiscoveryComponent"
class="org.rhq.plugins.jmx.MBeanResourceComponent"
description="ActiveMQ Broker">
<metric property="MemoryPercentUsage" displayType="summary" category="utilization" units="percentage"
description="Percent of memory limit used."/>
<service name="Queue" discovery="ActiveMQDiscoveryComponent"
class="ActiveMQDestinationComponent"
description="ActiveMQ Queue">
<metric property="MemoryPercentUsage" displayType="summary" units="percentage" category="utilization"
description="The percentage of the memory limit used"/>
<!-- same as Queue except for Type=Topic -->
<service name="Topic" discovery="ActiveMQDiscoveryComponent"
class="ActiveMQDestinationComponent"
description="ActiveMQ Topic">
<metric property="MemoryPercentUsage" displayType="summary" units="percentage" category="utilization"
description="The percentage of the memory limit used"/>
The theory is that the managed component or the plug-in's getValues method is returning an integer (the percentage) instead of a decimal. For example, instead of 0.02 for 2%, 2 is returned. This results in the value being displayed as 200 % when it unit is applied.