Take a look at these posts:
Get connection counts to server, application, appInstance and stream
HTTProvider that returns server, vhost, application, appInstance, stream conn. counts
Richard