Skip to content

LimitedTransaction

busterwood edited this page Jan 5, 2018 · 5 revisions

This class limits the number of open (native) MSMQ transactions in your application to a reasonable level.

Properties:

  • MaxOpenTransactions the maximum number of LimitedTransaction that can be open concurrently, defaults 5000

See QueueTransaction for other details.

Why?

If your application opens enough transactions it can cause MSMQ to slow to a crawl (or stop) until transactions are complete. I've seen MSMQ stop when just over 80,000 transactions were left open.