How do I check the no. of mailbox entries for a genserver process

BEAM’s scheduler penalizes processes sending messages to processes with large mailboxes. This gives the target process a chance to catch up, so the mailbox can never increase indefinitely.

This may change in the future, though: [erlang-questions] Sender punishment removed