[ 
https://issues.apache.org/jira/browse/ARTEMIS-3135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17288660#comment-17288660
 ] 

Gary Tully commented on ARTEMIS-3135:
-------------------------------------

[~erwindon] thanks for your efforts to create a reproducer, it is much 
appreciated.
The effect will be concrete in the way that it effects paging, it is not just 
cosmetic.
The idea is that we increment memory usage with the size of the message on 
entry and decrease when the message is removed. In the past this value would 
not change and memory used for decoded content was not accounted for leading to 
paging not kicking in on time and potential for OOM. For users that keep lots 
of real data in the application properties rather than the message body, this 
was a serious issue.
With the fix for  ARTEMIS-3067, the estimate can change when content is lazy 
decoded. In most of the cases this has been tracked and the usage adjusted such 
that the decrement on removal will match the value incremented on entry. 
However I did not consider the UI/JMX and your scenario was not covered by 
existing tests, it was missed!
The implication is that memory tracked will again be less than reality (because 
the counter will have to first go positive) and the same OOM can occur if lots 
of the messages are in play. However if the values are low, in your case less 
than 10bytes per message, it may not be a significant issue and if the messages 
are not browsed, it won't occur.

> AMQ222214: Destination q has an inconsistent and negative address size=-6
> -------------------------------------------------------------------------
>
>                 Key: ARTEMIS-3135
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3135
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 2.17.0
>            Reporter: Erwin Dondorp
>            Assignee: Gary Tully
>            Priority: Major
>         Attachments: broker.xml
>
>
> The following messages appear after sending a message and then manual 
> deleting it using the GUI:
> {{AMQ222214: Destination q has an inconsistent and negative address size=-6}}
>  and
>  {{AMQ222215: Global Address Size has negative and inconsistent value as -6}}
> The file {{broker.xml}} is almost pristine, except for the addition of 
> anycast destination {{q}}.
>  using simply {{<address name="q"><anycast><queue 
> name="q"/></anycast></address>}}
> The message that was sent is a simple text message sent using the AMQP 
> protocol to this queue.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to