perfmon

“The RPC server is unavailable”

时光总嘲笑我的痴心妄想 提交于 2019-12-12 23:55:19
问题 this is driving me crazy. I have 2 testing machine, one XP, and one Vista. I am running the same commands on both. These commands include creating a logman counter ( like a perfmon with command prompt), starting these counters, then stopping them, and then deleting them. The problem is this: On XP they work perfectly, I am getting all the statistics, and it works always. On Vista, they work on the first time, but then I always get the error back, "The RPC server is unavailable." This happens

Jmeter performance monitoring using perfmon plugin

早过忘川 提交于 2019-12-12 04:19:32
问题 I am trying to use Jmeter perfmon plugin to monitor cpu and memory utilisation of server. Server is hosted on linux machine and is running apache and postgresql. I am running serveragent in linux server and added cpu and memory parameters in Jmeter perfmon metrics collector. Now when I run my Jmeter tests then both apache and postgrelsql are used.I can see some data coming in performance collector. 1)How can I find cpu utilization of apachae and progresql when test are run? 2) I can see

Perflib 2 crashes when adding a counter (from Perfmon)

杀马特。学长 韩版系。学妹 提交于 2019-12-11 13:42:06
问题 I have a C++ application (under Win32) for which I need to provide performance counter information. I'm using Perflib v2, so have created a manifest which is processed by CTRPP. My provider then calls PerfAutoInitialize and PerfCreateInstance with no errors. When I go to add the counter in Perfmon, my application crashes. Tracing through the disassembly shows the code in the perflib worker thread calling the internal function (pcwum.dll) PerfpAddOrRemoveCounter. This calls on to

Where can I find documentation for publishing data to perfmon in C++?

大兔子大兔子 提交于 2019-12-11 04:09:18
问题 Years ago I wrote some code to "publish" data for perfmon to consume. Using those counters is pretty well documented, but I found it challenging to find (at the time) good documentation and sample code to publish the data for perfmon. Does anyone know where I can get this documentation? I also seem to recall some class wrappers, but I may be mistaken. EDIT: I did find this, and I will keep looking for "custom application performance counters". 回答1: You're bringing back old memories! From 1998

Finding perfmon counter id via winreg

只谈情不闲聊 提交于 2019-12-11 02:23:27
问题 I have an app that collects Perfmon counter values through the API exposed in winreg.h - in order to collect Perfmon counter values I must make a call to RegQueryValueExW passing in the id of the Perfmon counter I'm interested in, and in order to obtain that ID I need to query the registry for the list of Perfmon counter names and go through looking for the one I'm interested in C++ isn't my language of choice, so the following is a shaky example, probably with lots of syntax errors but you

Failure in delete performance counter category

╄→гoц情女王★ 提交于 2019-12-10 23:57:25
问题 I have this simple code: public void CreateCounters() { if (PerformanceCounterCategory.Exists(_categoryName)) { PerformanceCounterCategory.Delete(_categoryName); } // create logic… } works on my machine. I run it on my server, get the following stack trace: System has detected a fatal error. EXITING... NativeErrorCode: 1010 ErrorCode: -2147467259 Message: The configuration registry key is invalid TargetSite: Void RegisterFiles(System.String, Boolean) HelpLink: Source: System Stack Trace: at

Trying to disable Processor idle states (C states) on Windows PC

不打扰是莪最后的温柔 提交于 2019-12-09 17:05:01
问题 I need to prevent the processor from entering an idle state (non C0 C state). Admittedly I do not know much about processor C and P states so bear with me. We use a camera from a third party vendor which occasionally delivers corrupted frames. The vendor has determined that when the CPU enters an idle state it interferes with the transmission of the frame over the firewire. To confirm this I used the following code on a Windows 7 PC and indeed, disabling the idle states resolved the issue. /

Windows性能监控监视器(perfmon使用)

孤街醉人 提交于 2019-12-09 15:23:20
一、在命令窗口或运行中执行perfmon.exe,打开性能监视器 二、在用户定义中,即可新建--数据收集器--性能计数器,步骤如下: 三、添加监控Windows服务器的资源类型,例如:内存(Available MBytes)磁盘(%Disk Time)CPU(%Processor Time) 四、可设置收集结果保存的工作目录 备注: 1、若更改目录路径或执行时间,则执行以下步骤: 2、该监视器,添加的内存使用监控使用情况,是收集可用的内存情况,且单位为MB。所以要计算 内存使用占比=(物理总内存-可用内存)/物理总内存*100% 单位都为MB。 来源: https://www.cnblogs.com/zwh-Seeking/p/11736262.html

PerformanceCounterCategory.GetCategories() throws exception ArgumentException - Invalid value '' for parameter 'categoryName'

大憨熊 提交于 2019-12-08 15:59:16
问题 When I try to run this code: var categories = System.Diagnostics.PerformanceCounterCategory.GetCategories(); I get an ArgumentException exception. I already tried the following with no luck: How to manually rebuild Performance Counter Library http://support.microsoft.com/kb/300956 lodctr /R Logged in as a local administrator. Disabled User Access Control (UAC) Made my user member of the Performance Monitor Users group. I get the same result whether I run Visual Studio 2008, 2010 or 2012, on a

Perfmon can't create data collector set on Windows 7 x64

旧时模样 提交于 2019-12-08 00:06:51
问题 I'm trying to create a data collector set using Perfmon. When I right click 'New -> Data Collector Set' in the User Defined folder, I see the wizard dialog appear. However, the 'Next' and 'Finish' buttons are disabled. All I can do is click on Cancel. Any ideas? 回答1: Found the answer to this while googling a problem with the disk defragger. The recommendation I found was to (backup first!) remove the registry key: HKLM\Software\Microsoft\RPC\Internet I exported the key for a backup; deleted