perfmon

"The RPC server is unavailable"

Hi, 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 ...

Finding perfmon counter id via winreg

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 thr...

Running programs w/ a GUI over a remote connection

I'm trying to start perfmon and another program that have GUI's through a python script that uses a PKA ssh connection. Is it possible to do this? If so could anyone point me in the right direction? ...

PerformanceCounterCategory.Exists throwing 'Input string was not in a correct format.'

When I'm checking for the existance of a performace category using PerformanceCounterCategory.Exists("myCategory") on a system (clean install of XP SP3) where the category doesn't exist I'm getting the following exception thrown ... Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles...

Why can't perfmon see instances of my custom performance counter?

I'm creating some custom performance counters for an application. I wrote a simple C# tool to create the categories and counters. For example, the code snippet below is basically what I'm running. Then, I run a separate app that endlessly refreshes the raw value of the counter. While that runs, the counter and dummy instance are seen...

Does windows have performance counters to measure statistics of a dialup connection?

Hi, Does windows have performance counters to measure statistics of a dialup connection? Opening up Perfmon I can see that it has a performance counter called "Network Interfaces" which can be used to collect stats on a chosen network interface (mostly LAN cards) but I cannot see my dial up connection in the list here. How do I go about...

Creating a PerfMon counter to record an average per call (C#)

How can I use PerfMon counters to record the average execution time of a method in C#? So far I've only found sample code to incrememnt or decrement a PerfMon counter. ...

Controlling PerfMon logging on multiple systems

I need to use PerfMon to collect data from several machines, and I need to be able to turn collection on/off at certain times. I've got all the data points configured on each machine; I just need to start/stop PerfMon, and to start/stop collection of a set of data points. For reasons I won't go into, I can't simply configure all collec...

How do I grant a service user sufficient rights to create registry keys in windows 7

I have an application that runs as a service, and dynamically creates and publishes windows performance (perfmon) counters. When I run the application under my own account (as a service) which has administrative privileges, I get the following error: 714: The specified registry key is referenced by a predefined handle. When I run the a...

What is the most appropriate performance counter type for measuring operation time?

Say I have a method Foo() and I want to measure the time in milliseconds it took to execute which type of Windows Performance Counter should I be using? var stopwatch = new Stopwatch(); stopwatch.Start(); Foo(); stopwatch.Stop(); counter.RawValue = stopwatch.TotalMilliseonds; Currently I'm using NumberOfItems64 but that persists the l...

"Errors During Preprocessing" is non-zero in ASP.NET perfmon counters

While testing an ASP.NET application with perfmon, we find that the following field is non-zero: ASP.NET Apps v2.0.50727 > Errors During Preprocessing Documentation says that this field is "The number of errors that occurred during parsing, excluding compilation and run-time errors." However, I have not been able to track down why...

How can one access perfmon (windows server 2008) raw collected data from an ASP.NET web application?

In an ASP.NET web application, how can I access the raw data collected from perfmon in windows server 2008? ...

Average wait time performance counter - SQL2000 vs. SQL2005

The Locks performance object on SQL Server provides three counters that I'm interested in. X = Average Wait Time (ms) Y = Lock Wait Time (ms) Z = Lock Waits/sec From their descriptions I'd have imagined that X = Y / Z. However, while this is true for SQL2005, it does not seem to be true for SQL2000. I have some code that forces a dea...

Performance Counter?

I would like to monitor the performance of the Memory (RAM) and Physical Disk, what are all the counters in Perfmon that I have to monitor? ...

Perfmon.msc and XP Embedded

Hi, I just came into a project that has xp embedded devices already in the field. I was asked to start collecting performance counters. The embedded xp is the default SP2 image. When I type perfmon.msc in run, it says it cannot find it. Based on a google search, I am assuming that the Embedded SP2 Feature Pack 2007 had to be used duri...

perfmon counters on 64 bit windows

I'm trying to have perfmon counters to work both in 32bit and 64bit modes of the perfmon. I have two builds of my coutners dll, one in c:\windows\system32, the other in c:\windows\syswow64 folder. I can't get both of them to work at the same time though, only one at a time. As a matter of fact I can't even figure out what determines w...

How can an improvement to the query cache be tracked?

I am parameterizing my web app's ad hoc sql. As a result, I expect the query plan cache to reduce in size and have a higher hit ratio. Perhaps even other important metrics will be improved. Could I use perfmon to track this? If so, what counters should I use? If not perfmon, how could I report on the impact of this change? ...

Monitoring process-level performance counters in Windows Perfmon

I am sure everybody has bumped into this. As you scale a web server that uses multiple application pools, it's valuable to collect performance counters for each application pool 24x7. The only problem is - Perfmon links counters to application pools by process ID, so whenever an application pool recycles you have to remove the counters f...

How to access Perfmon info?

I would like to get some NCache info as Perfmon sees in (eg: Count) but directly using C#. Does anyone have any code for this, please? ...

Using Perfmon with MySQL Connector/NET

I am trying to diagnose repeated lock wait timeouts from my ASP.NET app to MySQL 5.1. I'm using MySQL Connector/NET 6.2.3. I don't see anything MySQL-related in Perfmon's Performance Object dropdown list. What else can I do to try to diagnose these issues? ...