basho/riak_cs — pull request #532 by kellymclaughlin (2013-04-12 04:59:33+00:00)
Title: Memory not released from access archiver process

This [issue](http://lists.basho.com/pipermail/riak-users_lists.basho.com/2013-April/011805.html) was reported on the mailing list and I was able to reproduce using the provided python code.

My testing shows that the problem is that when the access archiver process receives ownership of an ets table, it retains the memory used by that table even after the table is deleted.

Forcing gc on the process immediately free the memory, but this does not happen automatically for some reason.

The short-term fix is make the process go into hibernation when it goes to the idle state, which is where is spends the majority of its time.