Determining Process IDs of multiple BizTalk Host Instances
Posted by DipeshA on September 21, 2012
For debugging, it is neccessary to attach the BizTalk host instance process to Visual Studio. However, if you have multple host instances, you cant tell which one is which.
I have found a PS script which gives you the process Ids of multiple host instances.
32Bit Hosts:
TASKLIST /FI “USERNAME ne NT AUTHORITYSYSTEM” /FI “IMAGENAME eq BTSNTSvc.exe” /SVC
64Bit Hosts:
TASKLIST /FI “USERNAME ne NT AUTHORITYSYSTEM” /FI “IMAGENAME eq BTSNTSvc64.exe” /SVC




Henrik Roth said
Hi!
Nice tip, here is another one:
If you are using dedicated hosts for send, receive, orchestration and tracking and are using individual BizTalk Host Instance Accounts, you can see this information directly in Task Manager (don´t forget the PID column). The user running the service will guide you:
BizTalkHostUserS = send host
BizTalkHostUserR = receive host
BizTalkHostUserO = orchestration host
BizTalkHostUserT = tracking host
and so on…and the naming convention is upp to you =)
Best Regards
Henrik
Colin Dijkgraaf said
That PS command only works for 32 bit hosts instances only, I tried it and it didn’t list any of the 64 bit hosts instances, it would have to be amended from BTSNTSvc.exe to BTSNTSvc64.exe to list those.
The trick I usually use is host to stop all the hosts instances except the one I want to debug code in, debug and attach to the process and then start up all the other hosts instances.
DipeshA said
Thanks Colin,
I have updated my post for 64bit hosts.
Regards,
Dipesh