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

  • Home
  • SEARCH
  • 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 4058638
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:06:17+00:00 2026-05-20T15:06:17+00:00

My development team is using ASP.NET 3.5 / 4.0 right now, and our sites

  • 0

My development team is using ASP.NET 3.5 / 4.0 right now, and our sites are running on IIS 7.5. Recently, we’ve been having problems (about once a week) that are causing Out of Memory exceptions to be thrown in our ASP.NET applications. The “Solution” is to restart the application pool on our website. I say “Solution” because it’s hardly a solution; it’s more of a bandage that’s just keeping our application pool running at a reasonable state. It seems to me that some application or many applications are leaking memory, which is building up over time and causing the out of memory exception. While I can set IIS to periodically restart the application pool, I’d rather know how I can detect the memory leaks in order to attempt the fix the program rather than keep applying band-aids. Are there any tools out there that can possibly detect and log memory leaks for ASP.NET applications?

Also, we really started seeing more of this problem when we switched to using Telerik’s RAD controls. Has anyone else had problems similar to this using these controls?

Thanks,

Aaron

  • 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-05-20T15:06:18+00:00Added an answer on May 20, 2026 at 3:06 pm

    I previously posted this guide in response to another question, but that question and my answer appear to have been deleted. It’s not for the faint of heart:

    1. Install the Debugging Tools for Windows (Available as part of the Windows SDK) on the server
    2. When the application has been running for a while, use adplus to capture a memory dump of the process (It’s useful to use something such as Process Explorer to find the correct process ID to dump):

      ADPLUS -hang -p <process id> -o .

    3. This will create a directory containing the memory dump. You can now use windbg, and open the dump file (File -> Open Crash Dump…)

    4. The joys of unmanaged code now appear. But you use something called Son of Strike, which understands .NET code, to see what objects are allocated. First you load SOS:

      .loadby sos mscorwks

    And then you ask it to examine the managed heap:

    !dumpheap -stat
    

    This generally spews a ton of output, but there are two columns showing the number of instances and the amount of memory being consumed, by type. Some types you expect to see a lot of (e.g. String), but if, say, there are thousands of instances of one of your own types, you might be leaking these objects somehow. One that’s caught me in the past is hooking up an event handler in an object to a static event in the application – that event then has a live reference to every one of those objects.

    I can never remember how most of this works, and generally refer to this cheat sheet for SOS

    Tess Ferrandez has a good blog which sometimes covers .NET debugging using the unmanaged debuggers


    E.g. a post from last May, detailing a potential problem if you use XmlSerializers with a non-default constructor.

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

Sidebar

Related Questions

Assume your .NET-based development team is already using the following set of tools in
My team recently rebuilt their SQL Server 2005 development database from scratch using the
I'm working with my ASP.NET development team to try and create better (i.e. cleaner)
I have a development team specialized in ASP.NET. So the solutions we provide are
Recently our newest web designer asked me why we use ASP.NET for our website.
I'm using Visual Studio Team System 2008 at work to do web development. I've
Our development team work with Borland C++ Builder 6 and CodeGear C++ Builder 2007
My development team is moving to branching soon - we've been cursed with SourceSafe
Part of the development team I work with has been given the challenge of
Just to preface: I work in a small company that does ASP.NET development and

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.