Last night I did a load test on a site. I found that one of my shared caches is a bottleneck. I'm using a ReaderWriterLockSlim to control the updates of the data. Unfortunately at one point there are ~200 requests trying to update the data at approximately the same time. This also coincided with CPU usage spikes.
The data being updated ...
Hi All,
I have to show the time taken for a service call in Perfmon from my ASP.Net application. For this, I have added a stopwatch which starts at the service call start and stops at service call stop. Now I have a custom counter which user AverageTimer32 to log the stopwatch values to Perfmon. My question is, how can I show the service...
Most multiple instance performance counters in Windows seem to automatically(?) have a #n on the end if there's more than one instance with the same name.
For example: if, in Perfmon, you look under the Process category, you'll see:
...
dwm
explorer
explorer#1
...
I have two explorer.exe processes, so the second counter has #1 append...
I need to know what is Cache size. I've read solution on this site for more or less similar question but it partly serves me.
As i know i can get values from PerMon, here is function
public static string getCacheSize()
{
PerformanceCounter pc = new PerformanceCounter("ASP.NET Applications", "Cache % Machine Memory Limit Used","__TO...
I have a C# windows service which listens to a MSMQ and sends each message out as an email.
Since there's no UI, I'd like to offer an ability to monitor this service to see things such as # messages in queue, # emails sent (by message type perhaps), # of errors, etc.
What is the best/recommended way to accomplish this? Is it WMI or pe...
After spending a good few days breaking my head open against my desk, I figured I'd throw this up here on StackOverflow since I've yet to see the question properly answered.
This is a multi-part question. Once I know the concepts behind it, I should have no problem throwing it together.
1A) How do you get the InstanceNames associated w...
Hi. i'm trying to watch system performance and counters on the remote desktop (Win XP pro). my Active Directory account already in Administartors group on this machine. but when i'm trying to watch system performance by mmc console manage computer it return error 0xC0000BC6.
How can i resolve this?
...
I have written a small WPF widget using C# that displays the current CPU activity, RAM used and disk activity as three small percentage type bars. I have used the following PerformanceCounters for this: (diskCounter PerformanceCounter returns current total disk activity in bytes per second)
private void InitialisePerformanceCounters()
{...
Hello guys I have been trying to set performance counters instance names to something like "_Total" or "XYZ". But when I open in perfmon.exe it shows lowercase ("_total" , "xyz").
Any idea how to put it as uppercase? Also do I need to send it as a literal string?
...
I am looking for a solution for monitoring a number of .NET components for a system where performance is critical. I have been looking at performance counters, which generally provide the information needed.
The end result is that I would like a number of counters written to a database to be able to report upon. I would like to hold...
I have a custom counter category, to which I need to add a new counter, without deleting or resetting any existing counters. How can I do this?
I tried using CounterExists(), but even after I create the counter, how can I associate it to a CounterCreationDataCollection item and associate it to my existing counter category?
...
My program is successfully using .NET's MessageQueue class to read from an MSMQ. The queue is user configurable, and is sometimes on the local machine, and sometimes on a remote machine. The user can specify the remote machine either by name or IP address, and the queue name (and I'm only using "Private" queues).
I want to display to ...
I have collected data of Number of L2 cache misses using PAPI. I had run an MPI application with 4 threads (mpirun -np 4) and each thread reads the cache misses in L2. Each thread outputs data for every timestamp.
eg:
Timestamp data
xxx530 thread# 0 2136
xxx531 thread# 0 3217
.. . .
. ...
Our customer has a HTTP Remoting endpoint with a framework method that attempts to find out the name of the current running process. In calling System.Diagnostics.Process.ProcessName it intermittently gets into this error condition in some of their Windows 2003 servers.
Error Message :
System.InvalidOperationException:
Couldn't g...
http://msdn.microsoft.com/en-us/library/system.diagnostics.performancecounter.aspx
...
Im looking to build a perfmon type tool and wanted to list out the categories and counters for each as you would see in perfmon. the problem im having is that after digging in to it, it doesnt work as i expected.
when you use perfmon it shows it as Category, Counter, Instance, but how you build that list is more so Category, Instance, C...
I want to get network performance for all of the machines on my lan, but this PerformanceCounterCategory methot gets all off the things on the target machine with this usage :
System.Diagnostics.PerformanceCounterCategory [] PCCategories=null;
PCCategories = System.Diagnostics.PerformanceCounterCategory.GetCategories(MachineName);
are...
An expert in highly optimized code once told me that an important part of his strategy was the availability of extremely high performance timers on the CPU. Does anyone know what those are and how one can access them to test various code optimizations?
While I am interested regardless, I also wanted to ask whether it is possible to acc...
Wireshark times events down to microseconds and appears to do so with great accuracy. My question is where in the world do those timers come from when running under windows? If the answer is "it uses thus and such library" then my question is "well, where does that library get its timers under windows"?
...
Hi.
I have a C# project, where I have to both access the current workload of my processor, and ensure, that I run some specific code on every kernel of the processor. My problem is, that accessing the workload of my processor seems to prevent me from correctly assigning a thread affinity mask. I have some code here, that illustrates the...