[erlang-questions] mnesia memory leak?

mog mog-lists@REDACTED
Thu Jul 10 00:21:02 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

mog wrote:
| Hi
| I am working with mnesia in my app and after several hours of running 
it seems that my memory usage has gone over 1 gig.  At first I thought 
this was a bug in my code that interfaces with mnesia, but upon looking 
at my tables they are all reasonably small, however, ets:i() reveals
| 745             mnesia_transient_decision set   5940587 95901642 
mnesia_recover
|
| upon googling around i found that this seems to be a known issue?   
What is the proper way to deal with this?  I also found the following 
http://yanovsky.agenstvo.com/?p=31  <- he appears to have the same issue 
i do, and provides easy test code to expose the issue.
|
| Mog
sorry to reply to my own message but i thought seeing as how this want 
documented anywhere i could see and to double check this is an 
appropriate way to fix my problem.

mnesia_recovery:allow_garb(),
mnesia_recovery:start_garb().

that seems to clean up my memory problem.  I guess I shouldn't have said 
memory leak exactly, just seems mnesia doesn't want to free memory while 
under load, and given that my app has constant load that isn't really an 
option for me.

Mog
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIdTnNeq+tARrxhnsRAhm2AJ9jphA1ofOyYSqqcdep3cLUeru/NwCgoZU0
mx4dCDn1GhWBaprzyit+dPg=
=KMU3
-----END PGP SIGNATURE-----




More information about the erlang-questions mailing list