Monitor Process Memory
Vance Shipley <[email protected]>
| Newsgroups | gmane.comp.lang.erlang.general |
|---|---|
| Message-ID | <CAMoa0N+uNV4VgpQqA_61XZH-dAJ2X-0Cez68-UEkg1qj2OH6VQ@mail.gmail.com> |
I have a function in user_default which I would like to protect
against naive users consuming all the memory. It runs a loop building
an accumulator which is a list of records.
I could just use a guard of length(Acc) < ?MAXLEN however I don't
really know how big the records are. I'd like to stop when too much
memory is being used by Acc, or maybe the (shell) process.
Any suggestions?
--
-Vance