To identify performance issues in a BizTalk solution, you should rely on the performance counters that BizTalk Server uses. All the BizTalk performance counters should be added to the registry when you run the configuration wizard. If the registry keys were overwritten somehow, those performance counters were gone. You could use the configuration wizard to recreate those missing BizTalk performance counters, but it requires reconfiguring the features that use the performance counters. To do so you should unconfigure them first, which is something you might not want to do. Even though it is undocumented, you can manually populate those resister keys for the missing performance counters.
There are two types of the performance libraries that BizTalk Server uses:
1. BTSPerfMonExt.dll for the performance objects that the unmanaged code of BizTalk Server uses.
2. netfxperf.dll for the performance objects that the managed code of BizTalk Server uses.
The following tables shows which performance library is used for each BizTalk performance object:
BizTalk:Message AgentBizTalk:File Receive AdapterBizTalk:File Send AdapterBizTalk:HTTP Receive AdapterBizTalk:HTTP Send AdapterBizTalk:POP3 Receive AdapterBizTalk:FTP Receive AdapterBizTalk:FTP Send AdapterBizTalk:MSMQ Receive AdapterBizTalk:MSMQ Send AdapterBizTalk:SOAP Receive AdapterBizTalk:SOAP Send AdapterBizTalk:SMTP Send AdapterBizTalk:SQL Receive AdapterBizTalk:SQL Send AdapterBizTalk:MessagingBizTalk:Messaging Latency
To recreate the performance counters using netfxperf.dll, you can use InstallUtil.exe in the .NET Framework. If the assembly is installed in the GAC, you can run InstallUtil.exe as follows:
Installutil /i /assemblyname "<InstallerFileName>, Version=<VersionNumOfTheInstaller>, Culture=neutral, PublicKeyToken=<PublicKeyOfTheInstaller>"
InstallUtil /i /assemblyname "Microsoft.BizTalk.MsgBoxPerfCounters, Version=126.96.36.199, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
If it is not, you can run InstallUtil.exe as follows:
InstallUtil /i <Installer>
InstallUtil /i Microsoft.BizTalk.KwTpm.TPMgmtWS.dll
To recreate the performance counters using BTSPerfMonExt.dll, you can use lodctr.exe and unlodctr.exe as follows:
1. Copy the BTSPerfMonExt.ini and BTSPerfMonExt.h files to the %windir%\system32 folder.2. At a command prompt, go to the the %windir%\system32 folder, and then type the following command to uninstall the damaged performance counters.
3. Then, type the following command to reinstall the BizTalk performance counters: