Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7709023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:45:38+00:00 2026-06-01T00:45:38+00:00

I have a client-server application that utilises MSMQ and NServiceBus for messaging. During some

  • 0

I have a client-server application that utilises MSMQ and NServiceBus for messaging. During some recent testing, clients were left inactive for some time and unexpected behaviour of MSMQ was discovered:

  • MSMQ has a default number of threads that it uses to process queues
    (set in registry as QMThreadNo). When queues are left in a dormant
    state for an extended period of time, they accumulate a large number
    of messages. These large queues hold onto the limited number of
    threads that MSMQ has for longer than usual and therefore does takes
    longer to process the queues that are actually active.

    • It is possible to set the registry entry to a higher thread count.
  • Clients that are not sending/receiving messages for a set period of
    time (set in registry as the CleanupInterval) will change to an
    “Inactive” state and eventually their queues will be deleted until a
    message is sent from that client, forcing the recreation of the
    queues.

    • The CleanupInterval can be changed from its default of 5 minutes to a much longer amount of time.

Has anyone encountered these issues before? And if so, what possible solutions are there?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T00:45:40+00:00Added an answer on June 1, 2026 at 12:45 am

    You need to differentiate between Outgoing Queues or destination Queues.

    “When queues are left in a dormant state for an extended period of
    time, they accumulate a large number of messages. These large queues
    hold onto the limited number of threads that MSMQ has for longer than
    usual and therefore does takes longer to process the queues that are
    actually active.”

    MSMQ has a thread pool for outgoing queues. MSMQ will try and connect the outgoing queue to the destination and deliver the messages. If you have, for example, 1,000 outgoing queues then it will take some time for MSMQ to cycle through all of them.
    This has nothing to do with destination queues.

    I don’t quite understand how the number of messages in an outgoing queue will affect thread usage. There will only be one thread in use on a particular queue at any one time.

    An active queue has a thread – as otherwise it wouldn’t be active. I assume we are talking about the Status of the queue in Computer Management here.

    Clients that are not sending/receiving messages for a set period of
    time (set in registry as the CleanupInterval) will change to an
    “Inactive” state and eventually their queues will be deleted until a
    message is sent from that client, forcing the recreation of the
    queues.

    Again, this is Outgoing queues only. Outgoing queues are dynamically created by MSMQ on demand. They are deleted, if empty, after the CleanupInterval. This is perfectly normal and how MSMQ frees up resources.

    Like any product, MSMQ may need optimisation to meet your needs. If you want to change the registry values, go ahead.

    Cheers
    John Breakwell

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a client/server application that communicates with .Net remoting. I need my clients
I have a client-server application that uses .net remoting. The clients are in a
I have server application that listens for clients. Let's client lost internet connection and
I have a client server application that sends XML over TCP/IP from client to
i have a server - client application that runs on java 1.3; i want
I have a client server based windows forms application that needs an administrator only
I have an application that runs on a client's server built on a SQL
We have a client application that needs to send messages to a server for
I have a .NET client application that needs to communicate with a server using
Hi I have an application that operations like this.. Client <----> Server <----> Monitor

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.