绩效监督计数器问题 [英] Performance Monitor Counter Issue

查看:87
本文介绍了绩效监督计数器问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

性能监视器计数器出现问题。我在Performance Monitor中的DataCollectorSet中创建了一个名为JackpotHitCount的参数。当我使用Visual Studio代码(调试模式)运行服务时,我能够检索当前的JackpotHitCount值。但是当我使用安装程序(在Services.msc中)运行服务时,JackpotHitCount值重置为0.我无法检索当前值。有人可以帮我解决这个问题吗?

Problem with the Performance monitor counters.There is a parameter called JackpotHitCount which I have created in DataCollectorSet in Performance Monitor.I am able to retrieve the current JackpotHitCount value when i run the Service using the Visual Studio Code(Debug Mode).But When I run the Service using the Installer(in Services.msc) the JackpotHitCount Value is resetting to 0.I am not able to retrieve the current value.Can someone please help me with this issue?

推荐答案

最可能的区别在于,当您在visual studio中运行它时,它就像您(用户)一样运行,而当它作为服务运行时,它作为服务设置为的任何用户运行运行为。



也许用户无法看到/读取JackpotHitCount性能监视器计数器?
The most likely difference is that when you run it in visual studio it is running as you (the user) whereas when it is running as a service it is running as whatever user the service is set to run as.

Maybe that user can't see/read the JackpotHitCount performance monitor counter?


这篇关于绩效监督计数器问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆