activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trevor Pounds (JIRA)" <>
Subject [jira] Created: (AMQ-1833) Topic messages cause MemoryUsage to increase slowly over time
Date Mon, 30 Jun 2008 22:40:00 GMT
Topic messages cause MemoryUsage to increase slowly over time

                 Key: AMQ-1833
             Project: ActiveMQ
          Issue Type: Bug
          Components: Broker
    Affects Versions: 5.1.0
            Reporter: Trevor Pounds
            Priority: Critical
             Fix For: 5.2.0
         Attachments: r672943.diff

In our particular scenario we were using ActiveMQ with ServiceMix 3.2.1 and
JMS binding components configured via spring using a VMTransport in our connection factory.

<?xml version="1.0" encoding="UTF-8"?>
<beans  xmlns:jms="">
      <jms:consumer service="xsite:jms-consumer"
                                    transacted="jms" />

      <jms:connectionFactory brokerURL="vm://localhost"/>

What we see is a small memory leak related to advisory messages where the broker MemoryUsage
is incremented slowly over time.  After investigating this further we saw that certain messages
references were being incremented more than they were decremented.  As a result the method
org.apache.activemq.usage.MemoryUsage.decreaseUsage() was not being called when needed inside
the org.apache.activemq.command.Message.decrementReferenceCount() due to the referenceCount
being invalid.  AFter a while, 2days or so, with our configuration producerFlowControl would
stop the flow of messages (invalidly) due to this problem.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message