What happens when you exceed MSMQ journal limit

journalmsmq

If Journal is enabled on an MSMQ private queue, with a storage limit (eg, 100 kilobytes), what happens when that limit is exceeded? And can you configure this behaviour?

Specifically:

  • Can messages still be written to the queue?
  • Will those messages be written to the journal?
  • What happens to old messages already written to the journal?

People seem to imply that setting a limit is one solution to the risk of the journal growing and exceeding server resources, but I haven't discovered anyone explaining what happens when the limit is exceeded.

In our own (very limited) test, it seemed like messages simply stopped being written to the journal. (ie, when the Journal queue reached it's limit, old messages remained in the journal, but for all future messages, the journal was effectively turned off).

Best Answer

Yes, journaling will cease to work for new journal messages. Journal messages should be processed just like any other message so they shouldn't be allowed to accumulate.