The server encountered an unexpected error creating performance counters for management agent "MANameGoesHere". Performance counters will not be available for this management agent.

Scenario

When the Forefront Identity Manager (FIM) 2010 or 2010 R2 Synchronization Service starts the following error is logged in the Application event log for each management agent (MA) configured:

The server encountered an unexpected error creating performance counters for management agent “MANameGoesHere”. Performance counters will not be available for this management agent.

Should you go into Performance Monitor (perfmon) you won’t be able to find the three sets of FIM Synchronization Service counters.

Issue

Performance counters are mangled or corrupted or hosed or in need of some assistance.

Resolution

Unload the counters, load the counters and restart the FIM Synchronization Service.

Instructions

  • Open an elevated shell or prompt and navigate to \Program Files\Microsoft Forefront Identity Manager\2010\Synchronization Service\bin.
  • Run the following commands:
    • unlodctr fimsynchronizationservice
    • lodctr mmsperf.ini
  • Restart the service:
    • PS: Restart-Service fimsy*
    • CMD: net stop fimsynchronizationservice & net start fimsynchronizationservice

Summary

I know others have posted similar information but I’ve had success with the above approach this week in three separate environments.  I’ll undoubtedly forget the commands in the future and need them too.

What causes this I don’t know however…

Advertisements

About Paul Williams

IT consultant working for Microsoft specialising in Identity Management and Directory Services.
This entry was posted in FIM, Troubleshooting and tagged , , , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s