[erlang-questions] Why Beam.smp crashes when memory is over?

Ulf Wiger <>
Tue Nov 10 14:22:52 CET 2009


Tony Rogvall wrote:
> Not yet.
> 
> What kind of flavor do you have in mind?
> 
> One proposal is to let sender crash when receiver in box is full.
> 
> I would like to test a blocking version as well. This may sound like 
> utterly crazy, but we already have the infamous busy_port ;-)

...and the punishing of senders if the receiver has a long
message queue. I think these are abominations in the multicore
world, and should be phased out.


> A suggestion from Patrik Winroth is to be able to set thresholds on 
> resource limits, say in percent from max limit.

This could be done as an extension of erlang:system_monitor().
It already has the ability to trigger on large heap and long
GC, etc.

BR,
Ulf W
-- 
Ulf Wiger
CTO, Erlang Training & Consulting Ltd
http://www.erlang-consulting.com


More information about the erlang-questions mailing list