Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. System.OutOfMemoryException

System.OutOfMemoryException

Scheduled Pinned Locked Moved ASP.NET
sysadminwindows-adminperformancehelptutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kuwl_mark
    wrote on last edited by
    #1

    Dear Friends, I am frequently come across error called "System.OutOfMemoryException". whent this error come I need to restart my server. I search on google it suggested that iis memory get full. My concern is what cause this memory get full and how to avoid this error. THANKS IN ADVANCE.

    A N 2 Replies Last reply
    0
    • K kuwl_mark

      Dear Friends, I am frequently come across error called "System.OutOfMemoryException". whent this error come I need to restart my server. I search on google it suggested that iis memory get full. My concern is what cause this memory get full and how to avoid this error. THANKS IN ADVANCE.

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      Generally the cause of this is: Reading large data sets into memory. Creating excessive cache entries. Uploading or downloading large files. Excessive use of regular expressions or strings while parsing files. Excessive view state. Too much data in session state or too many sessions. Maybe if you are using Reports it may sometimes eat up the whole memory. Increase the memory of IIS and also do optimisation to your code so that you dont use much of your server space ....

      Abhishek Sur

      1 Reply Last reply
      0
      • K kuwl_mark

        Dear Friends, I am frequently come across error called "System.OutOfMemoryException". whent this error come I need to restart my server. I search on google it suggested that iis memory get full. My concern is what cause this memory get full and how to avoid this error. THANKS IN ADVANCE.

        N Offline
        N Offline
        N a v a n e e t h
        wrote on last edited by
        #3

        Your application might be written poorly. Some tips 1 - Avoid using DataSet/DataTable for reading data. Use DataReader and fill your custom collection classes. 2 - Use paged results 3 - Always call Dispose method on types which implements IDisposable. You can wrap it inside a using block which calls Dispose automatically when scope ends.

        All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups