
Throttling Messages Per Orchestration
This property, specified in the btsntsvc.exe.config file, will prevent an orchestration from consuming too much memory by limiting the number of outstanding messages it can have. All messages will continue to be delivered to the MessageBox; however, queued messages will not be delivered to the orchestration until it processes some of its outstanding messages.
To specify this property in the btsntsvc.exe.config file (located in the Microsoft BizTalk Server 2006 root directory), add the following parameter under Application node:
|
<configuration>
<application>
<Throttling PauseAt="100" ResumeAt="50" />
</application>
</configuration> |
In this example, once an orchestration has 100 outstanding messages, the MessageBox will stop sending additional messages. When the orchestration's number of outstanding messages is down to 50, it will specify the MessageBox can resume sending messages. You can specify other values.
You must also enable this feature, per-host, in the database. To enable message throttling for a host, you must edit the dbo.Applications table in the BizTalkMsgBoxDb database. For each host you want to enable message throttling per orchestration, set the fAttributes flag bit to 1. Only those hosts with the fAttribute set to 1 will allow message throttling per orchestration.