Determining Process IDs of multiple BizTalk Host Instances


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

About these ads

3 Responses

  1. 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

  2. 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.

  3. Thanks Colin,

    I have updated my post for 64bit hosts.

    Regards,
    Dipesh

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

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: