performance-counters

What are the best ASP.NET performance counters to monitor?

There are truckloads of counters available in perfmon for ASP.NET. What are the best (I am thinking of choosing 5-10) that will be the best to monitor in our test environment so that we can feed back to developers. I am thinking of things like request time, request queue length, active sessions etc. ...

How to detect SqlServer connection leaks in a ASP.net applications ?

I'm currently doing some GUI testing on a ASP.net 2.0 application. The RDBMS is SQL Server 2005. The host is Win Server 2003 / IIS 6.0. I do not have the source code of the application because it was programmed by an external company who's not releasing the code. I've noticed that the application performs well when I restart IIS but a...

Windows Performance Counter limits

What limits exist on the amount of data one can publish to a custom Windows performance counter category? I understand there is no hard limit on the number of counters or the number of instances, but rather there is a memory limit for the entire category. What is that limit? Is there a limit on the total number or size of all performan...

How to read ".NET Data Provider for SqlServer" performance counters from MS Test?

How do I read from the performance counter "NumberOfActiveConnections" of the category ".NET Data Provider for SqlServer" from a unit test in MS Test? I'm trying the following but it seems like I get the instance name wrong. The MSDN documentation claims this is a correct way of getting the instance name of a WinForms app but this won't...

Can ASP.NET Impersonate a user to Delete a Performance Counter Category?

I believe that I have successfully impersonated my own user account while running an ASP.NET page on my local machine. Using the method described here, I have successfully changed the WindowsIdentity.GetCurrent().Name from ASPNET to my domain account. I can successfully write to a file on the file system that ONLY my account has perm...

C# replacement for PerformanceCounter

Hi, I'm wondering if there is a ".net integrated" solution for exact time measurement (like the execution time of a function)? At the moment I'm using the PerformanceCounters from Kernel32. [DllImport("Kernel32.dll")] private static extern bool QueryPerformanceCounter( out long lpPerformanceCount); [DllImport("Ker...

GetProcessesByName() Throws Process performance counter is disabled

we had an application that uses Process.GetProcessesByName() but it is failing only on one user PC with the following error Process performance counter is disabled i seached the registry for the Disable Performance Counters entry but it was not present with the value set to 1, user env is XP with administrative rigths. i know that ...

How do I get MSMQ performance counters?

I have a bunch of MSMQs that I have created programatically using MessageQueue.Create(path) but when I look in perfmon I don't see those queue instances listed, only queues I created manually are listed. How do I get perf counters for all the queues? ...

Concept of "Performance Counters" in Linux/Unix

Windows has a Performance Counters infrastructure. The OS provides some common counters, and I can go add my own. What is the corresponding concept in Linux/Unix? ...

ASP.NET and the Output Cache - how can see if it's working?

Hi folks, Problem: I've got an ASP.NET website and i don't believe that my code is getting OutputCached correctly. I'm using IIS7 performance counters to show me the hits or misses a second. i've got a simple ASP.NET MVC website. I'm using the built in ASP.NET Output Cache magic. Here's some sample code :- [AcceptVerbs(HttpVerbs.Ge...

Monitoring dashboard for IIS and SQL Server

We have developed a .NET web application that uses SQL Server as a backend. Now we would like to provide a monitoring dashboard app for the tech support team. The idea is that this monitoring app will show a global picture of the "health" of the web servers hosting the application and the database servers holding the data. This "health" ...

Add performance counter in visual studio test suite by default

Hi all, Is there any way to preset a set of performance counters in VSTS such that when you start a load test, those performance counters will automatically captured and show up on a the system under test graph? Thanks in advance ...

performance counter events associated with false sharing

hi I am looking at the performance of OpenMP program, specifically cache and memory performance. I have found guidelines while back ago how to analyze performance with Vtune that mentioned which counters to watch out for. However now cannot seem to find the manual. If you know which manual I have in question or if you know the counters...

Adding performance counters via my ASP.NET code?

Hi folks, I'm trying to add some performance counters to my asp.net website. Now, I know how to increment/decrement some custom counter I make .. but my problem is that if I get my ASP.NET website to create these counters, if they do not exist (eg. i do this check in the global.asax App start method) then add/create them. But, it doesn...

Adding performance counters to existing category

I think this is more of a perfmon glitch, actually. Here's what's going on: 1. I create a counter category, and add some counters to it. They work fine. 2. I decide that I need some extra counters in that category. 3. I delete that counter category, and re-create it with new counters added. At this point, all old counters are working, b...

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 - The number of items on the queue The number of items removed from the queue per second The first one works fine, the second one always shows as 0 in PerfMon.exe, despite the RawValue appearin...

Are performance counters the right tool for my job? If so, how do I use them?

I've been asked how to find out how much memory and CPU my program is using, and I've been referred to Performance Counters. However, when I look at the documentation it starts off by telling me about providing consumer data by creating a manifest for my application, and my eyes glaze over. It's nice that such a general-purpose tool is...

Obtaining statistical Performance Counters via WMI in C#.NET

Hi all, Is there a way to create a Refresher object to obtain statistical Performance Counters data in .NET? There are plenty examples how to do it in unmanaged C++ and in VBScript, but no one in C#.NET Sincerely, Ilya Sotin ...

ASP.NET performance counter logging, reporting tool

Hi All, I have been looking for a solution to allow us to monitor our web servers performance counters over an asp.net website. Is there an existing tool that I can make use of to accomplish this or will I need to roll my own? The only solution I have found online is the use of perfmon to connect to the remote server, this I need to a...

How can I keep track of how many calls I make to other 3rd party API's using .NET?

Hi folks, In a number of our web applications, we make calls to 3rd part API's like Twitter, etc. Nothing new there. What we would like to do is to grab some statistics about our website usage -> how many calls we are making every hour and day to our various free and paid 3rd party API's. I'm not sure how we can do this. Now, I've us...