Monday, September 3, 2007

Performance Counters of .NET x86 applications on x64 machine

When you compile a .NET application to x86 CPU and run it on 64-Bit machine, the performance counters are not displayed by the Performance Counter Monitor (perfmon) and the Process Explorer (Systinternals). This is very weird.

The solution for the Performance Counter Monitor is to run it:

mmc.exe /32 perfmon.msc

This way the mmc.exe runs a 32-Bit application an can see the Performance Counters of 32-Bit .NET application.

Note that it doesn't show the 64-Bit Performance Counter when using the /32 flag.

 

Ami

No comments: