开发者

Get Number of active service instances?

Is there anyway of getting the number of active instance of the service I've tried adding a static int counter in the constructor and 开发者_运维技巧this works and implemented Idisposable to decrement the counter on the service but the dispose method only gets called when the service host closes?

Is there any native object i can get and see the current instance count?

Any ideas?

Thanks


Check out a gazillion of performance counters available for WCF:

  • http://msdn.microsoft.com/en-us/library/ms735098.aspx
  • http://blogs.msdn.com/aszego/archive/2009/10/19/wcf-performance-counters.aspx
  • http://www.sajay.com/post/2009/09/13/WCF-Performance-Counters.aspx
  • http://geekswithblogs.net/BVeldhoen/archive/2008/01/26/wcf-latency-test-harness.aspx

or google or bing for "WCF performance counters" - lots of hits.

Also, with Server 2008 R2 "AppFabric" (f.k.a. "Dublin"), Microsoft promises to bring us a really nice dashboard-style WCF management system - should be out in a few months at the very latest: http://www.microsoft.com/windowsserver2008/en/us/app-main.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜