How to get NServiceBUS performance counter to work?
I've setup NServiceBus to run in a produc开发者_运维百科tion profile. I've also executed the runner.exe
which "reinstalls" the performance counter "critical time" under NServicebus. But when I run my application and tries to enable the counter in perfmon, I get an "no instance" under the NServicebus critical timer. How can I fix this problem?
I got this to work by using the NServiceBus.PerformanceCounters
profile when installing my service. If you use the NServiceBus.Production
profile, it does not set up the counter. To get the behaviour of both, pass both profiles along on the install(http://nservicebus.com/Profiles.aspx).
You need to open up perfmon after the NServiceBus process is already running otherwise it doesn't pick up the instance.
精彩评论