Very useful little query to monitor the health of service broker

Tags:
While dealing with a SQL Server Service Broker issue I needed a quick easy way to see how backlogged the service broker was. So I came up with this little query which is surprisingly effective.
select far_service, state_desc, count(*) messages
from sys.conversation_endpoints
group by state_desc, far_service
ORDER BY far_service, state_desc
Hopefuly you find this helpful.
Denny
3  Comments on this Post
1.i have a DBServer and more DBNodes, DBNode send message to DBServer, the DBServer receive the msg from Node. the Server want to know the msg's owner ip, the best method get the ip from msg..
2.all Nodes send msg to Server, how to Monitor the Server Performance.
Thanks