[erlang-questions] Unload unused modules

Dmitry Belyaev rumata-estor@REDACTED
Sun Nov 8 13:36:34 CET 2009


Thank you. I searched for "unload" but there is "remove" in docs.

On Sun, 2009-11-08 at 13:24 +0100, Vlad Dumitrescu wrote:
> Hi!
> 
> On Sun, Nov 8, 2009 at 08:42, Dmitry Belyaev <rumata-estor@REDACTED> wrote:
> > Is there any way to unload unused module?
> >
> > I've been testing how many modules can be loaded to erlang. I came up to
> > little less than 750 modules of 217.5 KB each. So beam.smp consumed 800
> > MB of memory.
> >
> > Now I'm sure that some of the loaded modules will not be used at least
> > for a long time. How can I unload them?
> 
> Yes, code:delete/1 and code:purge/1. If you know nobody uses tha code,
> the latter will also clean up the memory.
> 
> regards,
> Vlad
> 




More information about the erlang-questions mailing list