[erlang-questions] inspect process mailbox size

Dale Harvey harveyd@REDACTED
Sat Jan 31 19:36:50 CET 2009


http://erlang.org/doc/man/erlang.html

4> erlang:process_info(self(),[message_queue_len,messages]).
[{message_queue_len,0},{messages,[]}]
5> self()!hello.
hello
6> erlang:process_info(self(),[message_queue_len,messages]).
[{message_queue_len,1},{messages,[hello]}]


2009/1/31 Cliff Moon <cliff@REDACTED>

> is there any way to inspect mailbox size at runtime?  Under load testing
> I'm seeing conditions pop up where a node will go out of control due to
> mailbox growth and it's rather hard to debug the issue post mortem from
> crash dumps.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090131/b2e45788/attachment.htm>


More information about the erlang-questions mailing list