Memory leak when using rabbitmq-server

Bug #1197380 reported by Louis Bouchard
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rabbitmq-server (Ubuntu)
Undecided
Louis Bouchard

Bug Description

rabbitmq-server seems to be leaking memory. This has been tested with Precise, Raring and Saucy

Run the following reproducer (attached to the bug) :

In one terminal :
 $ while true
 do
 ./queue_send.py
 done

In a second terminal :
 $ ./queue_receive.py

 a. Actual Results:

Free memory decrease and RSS of the rabbitmq-server process increase

Revision history for this message
Louis Bouchard (louis) wrote :

reproducer script : queue_send.py

Revision history for this message
Louis Bouchard (louis) wrote :

Reproducer script : queue_receive.py

Revision history for this message
Simon MacMullen (simon-macmullen) wrote :

Umm, with the shell fragment posted, you have the receiver started outside the "while true" loop. Therefore the shell will never start the receiver, and messages back up inside RabbitMQ until memory is exhausted.

You can verify this with "rabbitmqctl list_queues" or the management plugin web UI.

Louis Bouchard (louis)
Changed in rabbitmq-server (Ubuntu):
assignee: nobody → Louis Bouchard (louis-bouchard)
status: New → In Progress
description: updated
Revision history for this message
Louis Bouchard (louis) wrote :

Indeed, my test statement was wrong.

I now have updated the test statement & ran another set of tests both on Precise (2.7.1) and Saucy (3.1.3). Both test ran for 14 hours. Here is an outline of the memory usage in both cases:

Distro Version Mem Used Mem Free
===== ===== ========= =======
Precise 2.7.1 476780 1574972 (start)
                               908232 1143520 (finish)
                Delta 431452 -431452

Saucy 3.1.3 294508 1756496 (start)
                              761844 1289160 (finish)
                Delta 467336 -467336

A graphical view of the data is attached to the bug.

So there seems to be an existing leak situation up to the current version of rabbitmq-server

Revision history for this message
Louis Bouchard (louis) wrote :
Revision history for this message
Louis Bouchard (louis) wrote :

After further investigation, no memory leak situation was identified.

Changed in rabbitmq-server (Ubuntu):
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers