CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: App pool is crashing due to memory leakage

  1. #1
    Join Date
    May 2018

    App pool is crashing due to memory leakage


    Every after 4-5 days, application is showing HTTP error 503 and after restart Application from IIS, then it is working, please suggest if anyone faced this issue.

    Event Log as below:

    Faulting application name: w3wp.exe, version: 10.0.14393.0, time stamp: 0x57899135
    Faulting module name: mscorlib.ni.dll, version: 4.6.1586.0, time stamp: 0x575a1299
    Exception code: 0xc00000fd
    Fault offset: 0x0037198c
    Faulting process id: 0x1138
    Faulting application start time: 0x01d3de33a1b2c0e2
    Faulting application path: C:\Windows\SysWoW64\inetsrv\w3wp.exe
    Faulting module path: C:\Windows\assembly\NativeImages_v4.0.30319_32\mscorlib\40571abae9422cd2ca6fafbbde1c3cdc\mscorlib.ni.dll
    Report Id: dc62cf7c-c780-400d-8912-a8597269ad96
    Faulting package full name:
    Faulting package-relative application ID:

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004

    Re: App pool is crashing due to memory leakage

    Be aware that you can run out of resources by by keeping referemces to items (even after you are finished with them).

    If your site sees high traffic it you can use up resources before the GC has a chance to do its job. Resourses such as file db connections/commands, gdi resources (such as images) should be used inside a using block so they get freed immediately when they go out of scope.

    If you are allocating a lot of classes, consider implementing IDisposable and declaring them inside a using block. It tue classes are small, consider using structs instead.

    If you are using Visual Studio 2017, there are proviling tools built in that can help you identify memory issues.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)