[erlang-questions] trouble with erlang or erlang is a ghetto

Ulf Wiger ulf.wiger@REDACTED
Thu Jul 28 13:56:00 CEST 2011

On 28 Jul 2011, at 13:03, Joel Reymont wrote:

> On Jul 28, 2011, at 12:00 PM, Ulf Wiger wrote:
>> Yeah, we (or mainly, Michal Ptaszek) had reason to dig into this fairly recently, and found that tuning can really make a big difference. 
> Tuning what?

As I mentioned (indirectly) in that email, the distribution buffer busy limit is now tunable, but it has also been increased, as of R14B01, from 128 KB to 1 MB, so that may well be enough.

>> A particularly interesting fault situation was when this dynamic ended up suspending the rpc server.
> How did you find out?

Well, we could see from the crash dumps that it was the rpc server's message queue that caused the OOM, and it also listed as 'suspended' (I believe). Initially, we had enabled a system_monitor on busy_dist_port events. As that helped us identify busy_dist_port as a culprit, we [1] inserted some debug printouts in the VM to increase our understanding. Of course, Tony Rogvall and Rickard Green were also extremely helpful.  :)

Ulf W

[1] Michal Ptaszek, that is. I was an enthusiastic cheerleader and messenger boy, relaying ideas - and having a few of my own.

Ulf Wiger, CTO, Erlang Solutions, Ltd.

More information about the erlang-questions mailing list