Broker does not release memory to OS
------------------------------------

                 Key: QPID-3771
                 URL: https://issues.apache.org/jira/browse/QPID-3771
             Project: Qpid
          Issue Type: Bug
          Components: C++ Broker
    Affects Versions: 0.12
         Environment: Ubuntu 10.0.4
            Reporter: Jeff Armstrong


After adding a bunch of messages to queues on a broker with default options, 
then dequeuing them all, the resident memory (RSS) of the broker does not 
decrease. This is expected if the OS does not request the memory to be 
returned, but if you starve the system of memory, the OS should request this 
memory, but it still doesn't decrease. Somehow the broker is holding onto all 
of the memory used for previously allocated messages, and the OS is unable to 
ever retrieve the freed memory.

To reproduce:
- Create broker, direct exchange, and a queue with a binding, all with default 
options (or set a max size for the queue)
- From a client send a bunch of large messages to the queue, enough to use up 
most of your memory (note the RSS of the broker)
- From a client dequeue all of the messages from the queue (note the RSS of the 
broker has not decreased)
- Start some other application that would use more memory than is available, 
which should force the OS to request freed memory from the Qpid broker (note 
the RSS of the broker still has not decreased)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to