So we had an instance today where we wanted to know if BizTalk would be capable of handling a large number of applications. So we decided to run a small test that would allow us to see how the system holds up under these circumstances. Note that we know that this was not a conclusive test, but was instead designed to see if there was a preprogrammed upper limit. The environment that we were using was a virtual machine, with 8 cores and 2gb of ram, with that we were able to get the number up over 1024 applications without BizTalk showing any issues. With that said we didn't have any ports, orchestrations, or schema's installed in the applications. So this is solely about the number applications. The next step is to make the multi-threaded version of the app for adding it to the server so that I can go over the 1024 without having to wait for the hour and a half.
static void Main(string args)
bool isAdd = false;
int length = 1024;
for (int i = 0; i < length; i++)
ExecuteCommand(@"BTSTask AddApp -ApplicationName:SampleAppNumber" + i, 300000);
ExecuteCommand(@"BTSTask RemoveApp -ApplicationName:SampleAppNumber" + i, 300000);
public static int ExecuteCommand(string Command, int Timeout)
ProcessInfo = new ProcessStartInfo("cmd.exe", "/C " + Command);
ProcessInfo.CreateNoWindow = true;
ProcessInfo.UseShellExecute = false;
Process = Process.Start(ProcessInfo);
ExitCode = Process.ExitCode;
Update: It appears that BTSTask.exe doesn't handle multi-threading very well so this will have to stand in the event that someone decides to run this test any further I would really like to hear the results.