Uploaded image for project: 'Fuse JON plugins'
  1. Fuse JON plugins
  2. FUSEJON-97

MemoryPercentUsage measurement value is returned by the plug-in as an integer rather then decimal

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.2.2.redhat
    • Fix Version/s: 7.4.0.redhat
    • Component/s: ActiveMQ Plugin
    • Labels:
      None
    • Environment:

      JBoss A-MQ Broker Queue deployed;
      Memory Percent Usage measurement collection is enabled;

    • Steps to Reproduce:
      Hide

      1. Deploy A-MQ broker queue.
      2. From JBoss ON, discover and import A-MQ resources.
      3. Enable Memory Percent Usage metric for discovered queues.
      4. Put load on the queue so that it uses memory.
      5. From JBoss ON UI, refresh metric page containing queues metrics and notice that the Live Value column is 100 times larger then the value displayed in the Fuse Management Console.

      Show
      1. Deploy A-MQ broker queue. 2. From JBoss ON, discover and import A-MQ resources. 3. Enable Memory Percent Usage metric for discovered queues. 4. Put load on the queue so that it uses memory. 5. From JBoss ON UI, refresh metric page containing queues metrics and notice that the Live Value column is 100 times larger then the value displayed in the Fuse Management Console.
    • Bugzilla Update:
      Perform

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dbokde Dhiraj Bokde
                Reporter:
                loleary Larry O'Leary
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: