tagged [performancecounter]

Monitoring batch requests per second on SQL Server through WMI

Monitoring batch requests per second on SQL Server through WMI I need to programmatically (.NET 3.5, C#) monitor a SQL Server 2008 machine through WMI. I want to measure the number of batch requests p...

Can a C# program measure its own CPU usage somehow?

Can a C# program measure its own CPU usage somehow? I am working on a background program that will be running for a long time, and I have a external logging program ([SmartInspect](http://www.gurock.c...

9 Nov at 15:59

Why is my application becoming less responsive over time?

Why is my application becoming less responsive over time? I'm debugging a C# application that becomes almost unresponsive after a few days. The application calculates memory/CPU usage every second and...

How to get the number of CPU cycles used by a process

How to get the number of CPU cycles used by a process I have a need to get the number of CPU cycles used by a specific process using C# (or VB.Net). This information is available in the Process proper...

Performance Counter - System.InvalidOperationException: Category does not exist

Performance Counter - System.InvalidOperationException: Category does not exist I have following class that returns number of current Request per Second of IIS. I call RefreshCounters every minute in ...

25 Nov at 06:6

What would make PerformanceCounterCategory.Exists hang indefinitely?

What would make PerformanceCounterCategory.Exists hang indefinitely? I've got an application that uses performance counters, that has worked for months. Now, on my dev machine and another developers m...

17 Nov at 21:31

Counter of type RateOfCountsPerSecond32 always shows 0

Counter of type RateOfCountsPerSecond32 always shows 0 I have a windows service that serves messages of some virtual queue via a WCF service interface. I wanted to expose two performance counters - 1....

10 Feb at 15:56

Performance counter CPU usage for current process is more than 100

Performance counter CPU usage for current process is more than 100 I want to display CPU usage for my multithread application (working over multicore processor). I want to receive numbers close to Tas...

PerformanceCounterCategory.GetCategories is inconsistent with Perfmon

PerformanceCounterCategory.GetCategories is inconsistent with Perfmon Okay, So I'm basically trying to create a list of installed Performance Counter Categories, like the one you get in PerfMon. For t...

12 Apr at 12:21