locked
OutOfMemoryException RRS feed

  • Question

  • Dear Support,

    We are having a website hosted on Windows Server IIS 7.5

    Suddenly in past one month we are getting "OutOfMemoryException" every now and then in the same code which was working fine since many years.

    On further investigation we have found that it usually comes when application does some heavy task in the memory like writing a huge file using FileStream or loading a BMP image into memory etc.

    We have no clues what has happened on the server.

    Please see the server & application details below and advise :

    Server Configuration

    -----------------------------

    Windows Server 2008 R2 Standard Edition (64 Bit) (Service Pack 1)

    Installed Memory 64 GB (32 GB usable)

    IIS 7.5

    ASP.net Application Configuration

    ---------------------------------------

    Pool : ASP.Net 4.0 

    Enable 32 bit applications : True

    Managed pipeline mode : Classic

    Private memory limit (KB) : 4194304

    Virtual memory limit (KB) : 4194304

    Thanks,

    WFX Support Team

    Tuesday, February 16, 2016 7:15 AM

Answers

  • Hi WFX Support Team,

    Make sure to dispose of images/files you do not need - it is not optional. I wonder if the program crashes when you deal with large files in memory.

    The computer does not have sufficient   memory to complete the requested operation when one or more of the following  conditions are true:   
    • A file is too large or too complex.
    • The overhead of the other running processes is very high.
    • The physical memory of the computer is too small.

    Please pay more attention to these.

    In addition, if you want to make sure if it is related to IIS Configuration, please redirect to IIS forum for better response.

    http://forums.iis.net/

    Best regards,

    Kristin


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Proposed as answer by Kristin Xie Thursday, February 25, 2016 2:23 AM
    • Marked as answer by DotNet Wang Monday, February 29, 2016 5:16 AM
    Wednesday, February 17, 2016 1:51 AM