Dec 5 2008

Accessing performance counters on a remote machine

Category: .NetRory Primrose @ 09:40

I just encountered a curly situation with performance counters. I have added performance counters to a WCF service which has been deployed out to a host platform. When I fire up perfmon.exe on my local machine, the counter category isn't in the list of categories when I specify the remote machine.

All the research on the net seems to point towards a permissions problem. I am an administrator on the server however so this isn't the problem. I can also see other performance categories and counters for that machine, but not the ones I have just installed.

The answer to this one is unexpected. A restart of the Remote Registry service on the server is required. It seems that the remote registry service uses some kind of internal cache of the registry. After restarting that service, the performance counters I'm after are now available to my local machine.

Tags: ,

Comments (1) -

1.
Rory Primrose Rory Primrose Australia says:

If you are using WiX to install the performance counters, add the following after the <utilTongerformanceCategory /> element.

        <!-- Restart the Remote Registry service -->
        <ServiceControl Id='Restart RemoteRegistry Service'
                        Name='RemoteRegistry'
                        Start='both'
                        Stop='both'
                        Wait='yes' />

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading