[erlang-questions] Unload unused modules
Vlad Dumitrescu
vladdu55@REDACTED
Sun Nov 8 13:24:09 CET 2009
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