You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Stephen Baker (Jira)" <ji...@apache.org> on 2022/03/24 12:48:00 UTC

[jira] [Created] (ARTEMIS-3743) Discrephancy in message counts / address sizes

Stephen Baker created ARTEMIS-3743:
--------------------------------------

             Summary: Discrephancy in message counts / address sizes
                 Key: ARTEMIS-3743
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3743
             Project: ActiveMQ Artemis
          Issue Type: Bug
    Affects Versions: 2.20.0
         Environment: Artemis 2.20.0 on Centos7 with Dual Mirror, previously Artemis 2.17.0 with a different mirror connection.
            Reporter: Stephen Baker
         Attachments: Screen Shot 2022-03-24 at 8.21.23 AM.png

I have a large number of queues in my production environment with strange or impossible statistics.

For instance in the ExpiryQueue in the attached screenshot, the number of messages reported is 11907. We only send small messages, the address memory used by that queue is 55.67MB.

However if you include any filter, even a catch all filter the number of messages is a much smaller (in the 20s).

The removeAllMessages operation only removes and reports the smaller number, so the rest of the 11907 messages are stuck.

As mentioned on the mailing list, there are a number of other strange attributes on this and other queues, in all of our Artemis instances in production, such a negative delivering counts and sizes (should be 0 in this case, it's the cold side of a Dual Mirror and ExpiryQueue has never had any consumers outside of management console operations):


{code:java}
{
    "request": {
        "mbean": "org.apache.activemq.artemis:broker=\"artms1\",component=addresses,address=\"ExpiryQueue\",subcomponent=queues,routing-type=\"anycast\",queue=\"ExpiryQueue\"",
        "type": "read"
    },
    "value": {
        "ConfigurationManaged": true,
        "Address": "ExpiryQueue",
        "MaxConsumers": -1,
        "Exclusive": false,
        "DurableDeliveringSize": -2322269,
        "PersistentSize": 11415198,
        "GroupBuckets": -1,
        "Name": "ExpiryQueue",
        "MessagesKilled": 39634,
        "DelayBeforeDispatch": -1,
        "DurableMessageCount": 11989,
        "PreparedTransactionMessageCount": 0,
        "ID": 7,
        "RetroactiveResource": false,
        "DeadLetterAddress": "DLQ",
        "MessagesAcknowledged": 1851,
        "MessagesExpired": 0,
        "DeliveringSize": -2322269,
        "LastValue": false,
        "LastValueKey": null,
        "DurableScheduledSize": 0,
        "GroupRebalance": false,
        "GroupFirstKey": null,
        "User": null,
        "GroupCount": 0,
        "PurgeOnNoConsumers": false,
        "ScheduledCount": 0,
        "DurableScheduledCount": 0,
        "ConsumersBeforeDispatch": 0,
        "ExpiryAddress": "ExpiryQueue",
        "FirstMessageAsJSON": "ERROR: java.lang.NullPointerException (class javax.management.RuntimeMBeanException)",
        "GroupRebalancePauseDispatch": false,
        "Paused": false,
        "RoutingType": "ANYCAST",
        "DurableDeliveringCount": -1961,
        "FirstMessageAge": "ERROR: java.lang.NullPointerException (class javax.management.RuntimeMBeanException)",
        "DurablePersistentSize": 11415198,
        "MessagesAdded": 53584,
        "ConsumerCount": 0,
        "RingSize": -1,
        "DeliveringCount": -1961,
        "Enabled": true,
        "AcknowledgeAttempts": 41485,
        "Temporary": false,
        "FirstMessageTimestamp": "ERROR: java.lang.NullPointerException (class javax.management.RuntimeMBeanException)",
        "Filter": null,
        "ScheduledSize": 0,
        "Durable": true,
        "MessageCount": 11989
    },
    "timestamp": 1648125827,
    "status": 200
}{code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)