[erlang-questions] Where are the binaries in message queue but not part of process_info(Pid, binary) ?
Tue Oct 17 16:37:02 CEST 2017
On Tue, Oct 17, 2017 at 4:00 PM, Bekes, Andras G <
> While investigating a system that transfers lots of refc binaries, I tried
> measuring the amount of data in the message queue of a process. I noticed
> that the binaries in the message queue are not always included in the
> result of process_info(Pid, binary).
> In particular, when observing the binaries, I see time intervals when each
> of the new messages appear in the binary list, and time intervals when the
> binary list stays the same regardless of new messages in the queue.
erlang:process_info(Pid, binary) returns the binaries that are currently on
the heap of the process. Binaries in messages that have not yet been
received may or may not be part of the heap depending on internal emulator
The message_queue_data process flag explains this a little more and also
gives a way to control it to some extent.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions