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 9186491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:32:28+00:00 2026-06-17T19:32:28+00:00

We use NServiceBus in our web application and have recently found that at times

  • 0

We use NServiceBus in our web application and have recently found that at times there have been a few messages that just sit in the outbound queue despite a connected state however never leave. The quickest solution to remove them is to restart the MSMQ service. A problem I came across with this was that when restarting or stopping the MSMQ service the CPU jumps to 100%.

Has anyone come across this and find a way to prevent this high load. I don’t like the idea of an outage just due to stopping a service? One way I know is to use send only mode however this isn’t ideal.

UPDATE:
Configuration code used within the global.asax application start:

  IBus bus = Configure
            .With()
            .DefaultBuilder()
            .FileShareDataBus("c:\\storage")
            .XmlSerializer()
            .MsmqTransport()
            .IsTransactional(false)
            .PurgeOnStartup(false)
            .UnicastBus()
            .ImpersonateSender(false)
            .CreateBus()
            .Start(() => Configure.Instance.ForInstallationOn<Windows>().Install());
  • 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-17T19:32:29+00:00Added an answer on June 17, 2026 at 7:32 pm

    I think your issue might be related to the issue Incorrect MSMQ perms cause high CPU in web application on GitHub which is closed, but targeted for the 4.0 release which is not yet out.

    The issue is that NServiceBus is trying to read from the queue, but there is no queue! So it gets into a tight loop of Check-Error-Retry that pegs the processor.

    Taking down MSMQ is a fairly angry thing to do to a web server that needs it. If you need to do this in production, I would advise taking the server out of the load balanced pool (I’m assuming/hoping that you’re using a load balancer) and then restart MSMQ, then IIS. If the server isn’t handling requests then a short period of high CPU activity shouldn’t really be a big deal.

    When 4.0 comes out it should take care of the CPU issue, but I would still advise taking the server out of rotation because otherwise Bus.Send() will throw while MSMQ is unavailable.

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

Sidebar

Related Questions

A suite of integration services that use NServiceBus have been dropped in my lap
I have a use case with NServiceBus explained in this question. Essentially there is
Has anyone found a smart way to use NServiceBus, without having to implements that
I have been playing with nservicebus for a few weeks now and since everything
We're using nServiceBus in our development environment, where we have a frontend publishing messages
I have written a mvc that uses nservicebus to publish messages. This works fine
We've just newly decided to use NServiceBus on our project and we're experiencing some
I am currently working on updating our application to use NServiceBus 3.2 rather than
I have two windows services which use NserviceBus. One writes messages to the queue
Is it possible to use NServiceBus to publish and consume messages in the same

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.