[rabbitmq-discuss] looks like a memory leak, 2.4.1

Gavin M. Roy gmr at myyearbook.com
Wed May 4 20:42:01 BST 2011

On Mon, May 2, 2011 at 3:29 PM, Matthias Radestock <matthias at rabbitmq.com>wrote:

> Gavin,
> Gavin M. Roy wrote:
>> On Monday, May 2, 2011 at 2:48 PM, Matthias Radestock wrote:
>>> The above graph shows system memory usage. It is perfectly normal for a
>>> non-idle linux system to gradually fill up all the memory with cached
>>> files.
>> Which I expect in disk buffers in that graph. The inactive memory is what
>> threw me, going back and re-reading up on it, this is memory that previously
>> been allocated in vm that can be reclaimed for other use, correct?
> I have no idea. Consult your resident Linux expert ;)

So some more color, I decided to dive deeper into this to see what I could
find. The short version is I jumped into erl using -remsh and ran
erlang:garbage_collect(). and saw an immediate drop in that inactive memory.

I am using R14B01. I am reluctant to let that inactivity hit the upper
bounds of my ram, but at the same time, I want to see if the erlang vm is
just allocating until it can't and then will reclaim usage.

I did however with a certain level of clarity find that by issuing the
command in the erlang attached process, inactive memory held in the linux
kernel dropped by 83%.

Commands run:

$ erl -sname temp -remsh rabbit at rabbit03
1> erlang:garbage_collect().

May not be the bunny, but it seems to the vm.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110504/59756dd3/attachment.htm>

More information about the rabbitmq-discuss mailing list