3 ms·
> Allow limiting process's max heap usage What happens when it hits that limit? Crash, or try to GC, or... ?
by davidw 11y ago
> Allow limiting process's max heap usage
What happens when it hits that limit? Crash, or try to GC, or... ?
- rdtsc 11y agoHaven't looked into details. But I think it is configurable. Killing is an option or just sending a message to the error logger. There was also something about it sending a special gc trace event when it hits max.
- Jtsummers 11y agohttp://erlang.org/documentation/doc-8.0-rc1/erts-8.0/doc/html/erlang.html#process_flag-2 http://erlang.org/documentation/doc-8.0-rc1/erts-8.0/doc/htm... Configurable, but can kill the process in question and/or log when it occurs. Their suggestion is to log it first and tune it from there since heap size isn't easily predictable. EDIT: Scroll down a little bit to get this particular flag documentation.