locked
OutOfMemoryException errors RRS feed

  • Question

  • User1116965773 posted

    I am receiving OutOfMemoryException errors, i have installed my application on windows 2003 server with 4 GB of RAM , and every time to fix the issue i need to reset the IIS , if anything i can do to fix the issue.

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

    Event code: 3005
    Event message: An unhandled exception has occurred.
    Event time: 9/21/2014 1:37:04 PM
    Event time (UTC): 9/21/2014 5:37:04 PM
    Event ID: 12ec83643bd9474ead94f5a78cb4e50a
    Event sequence: 595206
    Event occurrence: 6139
    Event detail code: 0

    Application information:
        Application domain: /LM/W3SVC/809297663/Root/LotFinder-1-130557227588125000
        Trust level: Full
        Application Virtual Path: /LotFinder
        Application Path: D:\inetpub\wwwroot\LotFinder\
        Machine name: GALIIS01

    Process information:
        Process ID: 8284
        Process name: w3wp.exe
        Account name: NT AUTHORITY\NETWORK SERVICE

    Exception information:
        Exception type: OutOfMemoryException
        Exception message: Exception of type 'System.OutOfMemoryException' was thrown.

    Request information:
        Request URL: http://www.galaxy.com/lotfinder/searchresults.aspx?entry=roman+glass&action=search&searchtype=u&searchFrom=header&searchSubmit=Search
        Request path: /lotfinder/searchresults.aspx
        User host address: 21.32.28.36
        User:  
        Is authenticated: False
        Authentication Type:  
        Thread account name: NT AUTHORITY\NETWORK SERVICE

    Thread information:
        Thread ID: 8
        Thread account name: NT AUTHORITY\NETWORK SERVICE
        Is impersonating: False
        Stack trace:    at System.Collections.ArrayList.set_Capacity(Int32 value)
       at System.Collections.ArrayList.EnsureCapacity(Int32 min)
       at System.Collections.ArrayList.Add(Object value)
       at WebCommonServices.Page.PageBase..ctor()
       at galaxyDotComCommonServices.InternetPage..ctor()
       at LotFinder_searchresults..ctor()
       at ASP.searchresults_aspx..ctor()
       at __ASP.FastObjectFactory_app_web_hew5bhuo.Create_ASP_searchresults_aspx()
       at System.Web.Compilation.BuildResultCompiledType.CreateInstance()
       at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
       at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
       at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
       at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
       at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


    Custom event details:

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

          

    Sunday, September 21, 2014 11:40 PM

Answers

  • User555306248 posted

    There are likely two main reasons that could cause this, you either have an infinite loop occuring within your query or you have a tremendously large dataset.

    You may want to consider using a Profiler such as Jetbrains dotTrace or ANTS Performance Profiler (both of which have free trials), which can analyze your query and find any areas that could be causing these memory leaks or possibly improve your query.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, September 22, 2014 12:08 AM

All replies

  • User555306248 posted

    There are likely two main reasons that could cause this, you either have an infinite loop occuring within your query or you have a tremendously large dataset.

    You may want to consider using a Profiler such as Jetbrains dotTrace or ANTS Performance Profiler (both of which have free trials), which can analyze your query and find any areas that could be causing these memory leaks or possibly improve your query.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, September 22, 2014 12:08 AM
  • User1116965773 posted

    Thanks for your reply , just need to know while enabling the /3GB swtich will work here or as i checked the below URL which states related to memory issues. Pls help.

    http://forums.asp.net/t/1505564.aspx?w3wp+exe+crashes+with+system+out+of+memory+exceptions

    Monday, September 22, 2014 12:16 AM
  • User1116965773 posted

    Any expert comments and help please.. Thanks in advance

    Monday, September 29, 2014 10:23 PM