basho/riak_kv — pull request #916 by jonmeredith (2014-04-18 03:24:08+00:00)
Title: Add sys_monitor_count and sys_port_count to stats.

Permits tracking of potentially leakable resources. Calculating monitors does come at the cost of traversing all processes, but no other way I can see. Worth a discussion if it's worth it. The stats are cached so it shouldn't happen too frequently, and only affects one process at a time.