Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8900967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:13:57+00:00 2026-06-15T01:13:57+00:00

I am trying to measure processor load on my Azure project and when running

  • 0

I am trying to measure processor load on my Azure project and when running the emulator I get errors in the Emulator console like this one:

[MonAgentHost] Error: MA EVENT: 2012-10-10T12:15:06.982Z
[MonAgentHost] Error:    2
[MonAgentHost] Error:    9028
[MonAgentHost] Error:    8168
[MonAgentHost] Error:    SysCounterListener.dll
[MonAgentHost] Error:    0
[MonAgentHost] Error:    b9eb57e3-62d5-49a5-b395-abc3bd5
[MonAgentHost] Error:    liscounter.cpp
[MonAgentHost] Error:    SystemCounter::AddCounter
[MonAgentHost] Error:    660
[MonAgentHost] Error:    ffffffffc0000bb9
[MonAgentHost] Error:    0
[MonAgentHost] Error:    
[MonAgentHost] Error:    PdhAddCounter(\Processor(_Total)\% Processor Time) failed

I have tried creating a new simple console project (not Azure). Here I am able to read the performance metrics so this suggestion http://www.infosysblogs.com/microsoft/2011/06/mystery_of_the_windows_azure_d.html doesn’t seem to be the solution.

I setup the performance counters in OnStart of the RoleEntryPoint like so:

public class WebRole : RoleEntryPoint
{
    public override bool OnStart()
    {
        try
        {
            DiagnosticMonitorConfiguration config = DiagnosticMonitor.GetDefaultInitialConfiguration();

            var counters = new List<string>
                    {
                        @"\Processor(_Total)\% Processor Time"
                    };

            if (counters.Count() > 0)
            {
                config.PerformanceCounters.ScheduledTransferPeriod = TimeSpan.FromMinutes(5);
                config.PerformanceCounters.BufferQuotaInMB = 10;

                counters.ForEach(counter =>
                    config.PerformanceCounters.DataSources.Add(
                        new PerformanceCounterConfiguration()
                        {
                            CounterSpecifier = counter,
                            SampleRate = TimeSpan.FromSeconds(10)
                        })
                );
            }

            DiagnosticMonitor.Start(
                    "Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString",
                    config);

        }
        catch (Exception e)
        {
            Trace.TraceError("Exception during WebRole1.OnStart: " + e.ToString());
        }

        return base.OnStart();
    }
}

I have tried setting up IIS-logging which works just fine. So does tracing. Just not performance counters…

I am on Windows 7 Home Premium with Visual Studio 2010 SP1 and Azure SDK 1.7 installed (it didn’t work on SDK 1.3 eighter).

Anyone know what I am missing in my installation?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T01:13:58+00:00Added an answer on June 15, 2026 at 1:13 am

    Are you by chance using a non-English version of Windows? If so, I have bad news for you.

    Apparently, performance counters are localized in the registry, but Azure Diagnostics tries to register them using their english names (see PdhAddCounter(\Processor(_Total)\% Processor Time) failed).

    I had the same problem and asked a question on the Azure forums (here), but no solution or workaround was provided. I suppose all servers in the cloud run an english version of Windows, so it’s not an issue there, but you can’t test locally.

    If this applies to you, the only solution I can offer is to install an english version of Windows.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to measure, in a C# programm, the memory usage. I'd like to
I am trying to measure short time intervals, in order few of milliseconds. This
I am trying to measure memory consumption of a running program in Linux. I
I'm trying to measure the popularity of a post but there's no current system
I'm trying to measure how long it takes read then encrypt some data (independently).
I am trying to measure the performance increase of inlining an accessor into a
I'm trying to measure the execution perfomance of a few cross-platform solutions, among which
I'm trying to measure the energy usage level from my ipod when I run
I am trying to use EMMA to measure coverage of some JUnit tests that
I'm trying to create a module/class in node.js to measure asynchronous execution time but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.