如何让 NServiceBUS 性能计数器工作?
我已将 NServiceBus 设置为在生产配置文件中运行。我还执行了 runner.exe,它在 NServicebus 下“重新安装”性能计数器“关键时间”。但是,当我运行应用程序并尝试在 perfmon 中启用计数器时,我在 NServicebus 关键计时器下得到“无实例”。我该如何解决这个问题?
I've setup NServiceBus to run in a production 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我在安装服务时通过使用
NServiceBus.PerformanceCounters
配置文件来实现此功能。如果您使用NServiceBus.Production
配置文件,它不会设置计数器。要获得两者的行为,请在安装时传递两个配置文件 (http://nservicebus.com/Profiles.aspx)。I got this to work by using the
NServiceBus.PerformanceCounters
profile when installing my service. If you use theNServiceBus.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).您需要在 NServiceBus 进程运行后打开 perfmon,否则它不会获取实例。
You need to open up perfmon after the NServiceBus process is already running otherwise it doesn't pick up the instance.