Why are my custom performance counters not showing for my service?

I have a windows service that has a part that I am very paranoid about, so I applied it using custom performance counters (I go to calls from mta threads to sta threads, I don't ask).

The counters and config section have been tested and are known to work ... on my machine, but they don't appear on the server I'm installed on.

The installer does not create counters. I check for counters and create them if they don't exist before using them.

Doesn't this work because the service is running under the Local System account? Is there something about 2k3 (R2) boxes preventing this from working like in my XP dev explorer? What am I missing?

-1


source to share


1 answer


My best guess is that the account the service is running under does not have permission to create counters. I would expect it to be an exception. Can you catch the exception and log it?



0


source







All Articles