Performance Counters, Instances and Perfmon

From: Neil Moss (neil.moss_at_sp.am.unitech.net)
Date: 02/24/05


Date: Thu, 24 Feb 2005 12:17:20 -0000

Hi group,

I cannot get my performance counter instances to appear in perfmon.

Can someone at MS provide a definitive mechanism for how to do this please?

I am writing a web service which may be installed multiple times on the same
server under different web sites. Thus I want instance information.

I created a new category and counters via the server explorer in the IDE. I
dropped PerformanceCounter components onto the Global.asax surface, set the
category name and counter names, and readonly to false. At
application_startup, I determine the name of the instance I want to record
under, set the InstanceName of all my performance counters, and set RawValue
to 0 to initialize the instance.

Nothing happens as far as perfmon is concerned.

The counters themselves all work fine - the values increment properly, but I
just can't see them in perfmon.

Thanks muchly,
Neil Moss.



Relevant Pages

  • Re: [PATCH 1/4] x86_64: (SPARSE_VIRTUAL doubles sparsemem speed)
    ... performance counter before and after virt_to_page and page_address. ... This patch allows the use of simple performance counters to measure time ... struct pc pc; ... To mark the beginning of the time measurement do ...
    (Linux-Kernel)
  • RE: VMI error when trying to update perf libraries
    ... I was trying to manully rebuild my perf counters: ... it seems that the Performance Counter is ... Please refer to the following Microsoft Knowledge Base article to rebuild ... locate and then right-click Windows Management ...
    (microsoft.public.windows.server.sbs)
  • [patch 0/3] [Announcement] Performance Counters for Linux
    ... Performance counters are special hardware registers available on most modern ... We'd like to announce a brand new implementation of performance counter ... The biggest missing detail is lowlevel support for non-Intel CPUs and ... static int eventid; ...
    (Linux-Kernel)
  • Strange Performance Counter performance problem in Windows Service application
    ... I experience a strange problem I do not how to approach. ... My windows service application uses several performance counter. ... Before when staring the service deletes category and attempts to recreate ... Trace.WriteLine("Checking performance counters category.") ...
    (microsoft.public.dotnet.framework)
  • Re: perfXXXc.dat files and PerfLib registry key
    ... The code generated by the ATL wizard is known to add counters out-of-band, ... and to possibly corrupt the performance counter registration information. ... You can find examples of *.INI files for counters in %windir%\system32. ... > information stored in the registry). ...
    (microsoft.public.win32.programmer.kernel)