To maintain the stability of your environment Microsoft BizTalk provides automatic throttling according to the conditions of your environment. For most companies this throttling is more than enough, performing manual throttling
is not used broad, however more and more are doing this. Microsoft BizTalk also creates states to determine the severity of the throttling states, all these can be monitored and designated actions can be taken for all these states.
BizTalk does a lot of different communication towards the BizTalk database these are called "publishing" this is where a receive port or orchestration publishes messages into the Microsoft BizTalk databases, the other one is "delivery"
this is done by send ports or orchestrations, it's when a delivery to a third-part is done. An example of this would be a file share or a WCF service. Microsoft have many great articles regarding this issue. All are mentioned in the reference at the bottom
of this page.
There are many scenarios that may expose you to an automatic throttling state, a few of those are:
The automatic throttling states can be used to stabilize the environment, you can set different thresholds to manage the use of resources for a host, by setting thresholds for threads will make sure that the host never will use
more threads, and will make sure it won't eat up all your threads. This can be used when performing performance optimizing by limiting the use of resources for some hosts and granting more to others.
This will happen if the incoming message rate exceeds the message outgoing rate and the database experience problems with coping with the increasing amount of messages being published to the BizTalk databases. In order for BizTalk
to deal with these problems, it simply blocks the publishing of messages until the incoming rate is at par with the message outgoing rate. You can view this scenario in real-time by using the performance monitor and look at the counters described in the table
This may happen if you have a steep increment of memory use in for example large batch files. BizTalk will automatically reduce the size of the EPM thread pool, and stop any creation of new threads. If the batch requires a lot
of resources it will actually slow down the process in order to maintain the availability for the rest of the environment. Sometimes the message, if it is too big and including too many messages may be blocked out completely by BizTalk. In order to monitor
this you need to open the following views in Performance Monitor:
This state couldn't be described any better, the system memory exceeds the specified threshold and simply stops the EPM to start processing new messages and reduce the current EPM thread count, if the reason for this state is because
a steep memory usage of a batch file it will take longer to finish it, and if it is too big it will be dropped by BizTalk. Use the following counters to see this issue in Performance Monitor:
The reason why you encounter this state maybe that some of your SQL jobs have stopped, tracking host is not running or the number of suspended messages is high. This state will as the one above create the same scenario as above,
it will reduce the threads for EPM, and it also blocks the EPM to process any new messages and creates a publishing delay for all messages. In this scenario there are several counters to monitor:
This state simply states that the sessions used by the host towards the database exceed the specified threshold. The auto throttling here will do the same as in state 4 and 6, reduce the threads for EPM and stop the execution of
any the threads, it will also delay all ongoing messages until the database is back to normal. If this happens I recommend you to reduce the database connection threshold for the host. You can monitor this by looking at the following counters in Performance
What it says is that the process counts exceeds a specified threshold, the reason for this may be that you have to many transactions on that hosts that creates too many processes, try reducing the amount of allowed threads on the
host so that the system don’t create too many threads. The self-throttling will do the exact same as in state 8 and basically reduce the EPM thread count, stop it from creating new and messages will be delayed until the host is back to normal state again.
You can monitor this by using the following counters in Performance Monitor:
This happens if the message incoming rate is greater and exceeds the message outgoing rate, it can be caused by a shortage of resources or by high process complexity. BizTalk performs a self-throttling blocking the delivery thread
for a computed time until the message incoming rate is on par with the outgoing rate. To monitor this use the following counters in the Performance Monitor:
This state informs us that the a number on in-process messages delivered to a service class exceeds the specified threshold and can be caused by processing high complexity messages, slow outbound adapters or a shortage of resources
on the server. BizTalk self-throttles and slows down the message delivery to XLANG or adapters, It also reduce the size of the thread pool by the message agent. You can monitor this by looking at the following counters in Performance Monitor:
This one is also covered well in publishing throttling states, it basically tells us that we exceed the specified value of the process memory threshold. It occurs when you have large and complex messages that are being processed
or a high amount of message simultaneously. This sate will not make the system idle so no immediate action is needed if this is a once in a life-time scenario, however, BizTalk will still perform self-throttling and slow down delivery of messages to adapters
and XLANG. It may also reduce the memory usage by dehydrating messages and reduce the size of the EPM thread pool sometimes it also force a .NET garbage collect. You can monitor this by using the counters described below:
Basically, the systems memory exceeds the specified threshold and BizTalk will slow down message delivery to adapters and XLANG, it will also try to decrease the memory consumption by dehydrating messages it also reduce the thread
pool size of EPM. If you have this issue often you should consider reducing the EPM thread pool to decrease the occurrence of this throttling state as it will slow down BizTalk drastically. You can read the monitor for this in Performance Monitor as well by
using the following counter:
You will encounter this sate if BizTalk has a process thread count that exceeds the specified threshold. BizTalk will automatic throttle to decrease the thread count used by EPM and you should consider changing the different thread
throttling settings for the different hosts. You can monitor this issue too in Performance Monitor by checking the following counters:
This article is also available in the following languages
Read suggested related topic: