I’m a huge fan of the Perfmon counters and it has always irked me that they fail sometimes. This is the error I sometimes get when ILM starts:
The server encountered an unexpected error creating performance counters for management agent "HoofHearted".
Performance counters will not be available for this management agent.
This command line tries to install them again, which I have had good luck with recently:
lodctr.exe "C:\Program Files\Microsoft Identity Integration Server\Bin\mmsperf.ini"
It works on my lab boxes but I haven’t been able to get a good repro of the failure so unfortunately can’t say if this will work all the time.