We just had some orphaned database connections (our bug) to a tenant and were able to find and kill them because of Erlang's observability:
https://gist.github.com/chasers/e4aa33625e6ea39ecb89f03383dd...
edit: link to gist
https://gist.github.com/chasers/e4aa33625e6ea39ecb89f03383dd...
edit: link to gist