Bug 779082 (SOA-1482) - Negative values shows up in Overall Bytes at the action level
Summary: Negative values shows up in Overall Bytes at the action level
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-1482
Product: JBoss Enterprise SOA Platform 4
Classification: JBoss
Component: Monitoring and Management
Version: 4.3 CP01,4.3 CP02
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.3 CP04 GA
Assignee: tcunning
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks: SOA-1627
TreeView+ depends on / blocked
 
Reported: 2009-09-04 17:44 UTC by Jaroslaw Kijanowski
Modified: 2010-09-13 20:57 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
SOA-P 4.3 CP02 CR3 JON-2.3.0-8299 md5sum rhq-jbossesb-plugin-SOA.4.3.0.GA_CP02.jar 0d881ee81fdc9083ca9fc482140d29b1
Last Closed: 2010-09-13 20:57:45 UTC
Type: Bug


Attachments (Terms of Use)
Quickstart_helloworld_flood.esb (4.91 KB, application/octet-stream)
2009-09-04 17:45 UTC, Jaroslaw Kijanowski
no flags Details
helloworld_flood.zip (16.82 KB, application/zip)
2009-09-04 17:45 UTC, Jaroslaw Kijanowski
no flags Details
service-level.png (125.30 KB, image/png)
2009-09-04 17:46 UTC, Jaroslaw Kijanowski
no flags Details
action-level.png (140.54 KB, image/png)
2009-09-04 17:46 UTC, Jaroslaw Kijanowski
no flags Details
Screenshot-2.png (272.49 KB, image/png)
2010-05-06 03:28 UTC, Len DiMaggio
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 778468 0 high CLOSED Byte total metrics in ESB ServiceMessageCounter are measured in integer values 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker SOA-1482 0 Major Closed Negative values shows up in Overall Bytes at the action level 2017-05-03 10:56:24 UTC

Internal Links: 778468

Description Jaroslaw Kijanowski 2009-09-04 17:44:42 UTC
Date of First Response: 2009-09-04 14:41:01
project_key: SOA

It's not a regression.
It might be related to SOA-944 where some values were measured in integers instead of longs.

I have a quickstart (attached) where I send a lot of messages (470k).
The Overall Bytes metric at the Service level shows 2.1GB (service-level.png)
The Overall Bytes metric at the Action level shows -2021MB (action-level.png)

I'm guessing that the counter at the action level reached its maximum value and started from the beginning with the lowest value.

Comment 1 Jaroslaw Kijanowski 2009-09-04 17:45:02 UTC
Link: Added: This issue is related to SOA-944


Comment 2 Jaroslaw Kijanowski 2009-09-04 17:45:36 UTC
Attachment: Added: Quickstart_helloworld_flood.esb
Attachment: Added: helloworld_flood.zip


Comment 3 Jaroslaw Kijanowski 2009-09-04 17:46:08 UTC
Attachment: Added: service-level.png
Attachment: Added: action-level.png


Comment 4 tcunning 2009-09-04 18:41:01 UTC
What does JMX say (negative/positive/other)?

Comment 5 Jaroslaw Kijanowski 2009-09-05 12:47:47 UTC
JMX displays values bigger than 2^31 properly but AFAIUI this particular metric is not shown in the JMX console but is calculated by the plugin.

The metric that displays negative values is "Overall Bytes" at the Action level. In the plugin xml file this metric is mapped to "overallBytesProcessed". In the source code [1] this metric (a.k.a. OVERALL_BYTES_METRIC_NAME) is a sum of two longs, counterBytesProcessed and counterBytesFailed, but values for these two longs are int values:

bytesProcessed = (Long) attribute.refresh();
counterBytesProcessed = bytesProcessed.intValue();

and

bytesFailed = (Long) attribute.refresh();
counterBytesFailed += bytesFailed.intValue();

[1] http://anonsvn.jboss.org/repos/labs/labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ActionComponent.java

Comment 6 Jaroslaw Kijanowski 2009-09-09 07:30:51 UTC
Link: Added: This issue is a dependency of JBESB-2815


Comment 7 Jaroslaw Kijanowski 2009-11-21 08:26:56 UTC
Link: Added: This issue is a dependency of SOA-1627


Comment 8 Len DiMaggio 2010-05-06 03:28:29 UTC
Seems to be solved with SOA-P 4.3 CP04 and CP02 plugin.

Comment 9 Len DiMaggio 2010-05-06 03:28:29 UTC
Attachment: Added: Screenshot-2.png



Note You need to log in before you can comment on or make changes to this bug.