activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Huffman (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMQ-6518) Statistics plugin shows wrong value for average message size
Date Fri, 25 Nov 2016 04:11:58 GMT

     [ https://issues.apache.org/jira/browse/AMQ-6518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robert Huffman updated AMQ-6518:
--------------------------------
    Description: 
The statistics plugin reports the wrong value for average message size.

For messages on one of my topic JMX is reporting an average message size of 1242. The statistics
plugin is reporting an average message size of 0.

Digging into this I found that StatisticsPlugin line 123 is the problem. It invokes stats.getMessageSize().getAveragePerSecond()
instead of stats.getMessageSize().getAverageSize().

The result is that the plugin reports 1000 / averageMessageSize instead of averageMessageSize.


  was:
The statistics plugin reports the wrong value for average message size.

For messages on one of my topic JMX is reporting an average message size of 1242. The statistics
plugin is reporting an average message size of 0.

Digging into this I found that StatisticsPlugin line 123 is the problem. It invokes stats.getMessageSize().getAveragePerSecond()
instead of stats.getMessageSize().getAverageSize().

The result is that the plugin reports 1000 / averageMessageSize instead of averageMessageSize.

Note I cannot even work around this: it is a double cast as a long, so in my case I cannot
even multiple the result by 1000 to come up with an approximation of the actual average message
size.


> Statistics plugin shows wrong value for average message size
> ------------------------------------------------------------
>
>                 Key: AMQ-6518
>                 URL: https://issues.apache.org/jira/browse/AMQ-6518
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.14.2
>         Environment: Linux
>            Reporter: Robert Huffman
>
> The statistics plugin reports the wrong value for average message size.
> For messages on one of my topic JMX is reporting an average message size of 1242. The
statistics plugin is reporting an average message size of 0.
> Digging into this I found that StatisticsPlugin line 123 is the problem. It invokes stats.getMessageSize().getAveragePerSecond()
instead of stats.getMessageSize().getAverageSize().
> The result is that the plugin reports 1000 / averageMessageSize instead of averageMessageSize.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message