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

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.4.0.redhat
    • 7.2.2.redhat
    • ActiveMQ Plugin
    • None
    • 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.

    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.

      Attachments

        Activity

          People

            dbokde Dhiraj Bokde
            rhn-support-loleary Larry O'Leary
            Archiver:
            rhn-support-adandapa Aitik Dandapat

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty