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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:47:27+00:00 2026-06-10T20:47:27+00:00

I have a .Net-based website where a function gets deadlocked on the production-server. I

  • 0

I have a .Net-based website where a function gets deadlocked on the production-server. I haven’t been able to recreate the problem in development. But I have one tell-tale sign that makes it easy to detect if the deadlock has occured and that is that the number of threads is starting to increase from the “normal” 50 to above 100.

So what I’d like to do is to somehow dump information into a file when the number of threads pass 100. The information could be stacktraces, objects that run in the context of the thread etc. Anything that could lead me to the source of the problem.

I have tried to add simple logging but it was to expensive to log this in production.

Is this possible at all to do from a running site? The site is running inside IIS with .Net 3.5.

  • 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-10T20:47:29+00:00Added an answer on June 10, 2026 at 8:47 pm

    You could also try ProcDump from Microsoft which can conditionally generate a dump of a process based on the value of a performance counter such as the number of threads. Here’s an example the doc gives:

    Example: Write a dump of a process named ‘outlook’ when Outlook’s
    handle count exceeds 10000:

    C:>procdump outlook -p “\Process(Outlook)\Handle Count” 10000

    In your case you would specify “Thread Count” instead of “Handle Count” and your value would be 100 instead of 10,000.

    And since you’re running is IIS I think the process name is w3wp or something similar (use that instead of “Outlook”).

    Also, since this process is running managed code then you must also specify the “-ma” switch to get a full dump which is what you need to inspect a dump of a managed process.

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

Sidebar

Related Questions

Stack Overflowers: I have a search function on my company's website (based on .NET
I have been assigned to integrate a CMS to our .NET based website. The
I have a working SOAP request from my website to a .net based API.
We have a website that is based on C# and ASP.NET, I have a
I have an asp.net-mvc website and people manage a list of projects. Based on
I have an ASP.NET website on a Windows 2003 Server, that needs to access
I have an existing ASP.NET MVC based website. Very typical: XHTML, CSS, jQuery, C#,
I'm part of a team building an ADO.NET based web-site. We sometimes have several
What's the best way to have two websites (asp.net based) running on different domains
I have a .NET 3.5 based web service running at http://localhost/serivce.svc/ . Then I

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.