Re: memory leak in asp 2.0

Tech-Archive recommends: Fix windows errors by optimizing your registry



I wrote application on asp.net 2.0 using dataset. One dataset I put in
session collection and other (which is small and common for other
users) I put in application. I expected that it will get some amount
of memory, however I expected that this amount of memory will be fixed
and will depend on number of user. When I put code in production I
discovered that aspnet_wp.exe increases memory which it uses. Each
second 2meg. What may be the reason. I expected that when I load new
page, every variable that I use in old page releases memory. How I can
find where I did not release memory. I call each time 'Page unload'
when I load new page but never when I close it.


What do you mean by "I call each time 'Page unload'"?

You may place code in an Unload eventhandler, but that is called automatically.

Hans Kesting


.



Relevant Pages

  • Re: Swap space
    ... > twice the amount of RAM if you need to capture a dump for debugging. ... > If you won't ever be doing that, you may not need so much swap. ... least the size of physical memory. ...
    (freebsd-questions)
  • Re: My idea of fully-portable C code
    ... unused state in the middle of a list of values will "use the least ... amount of memory possible" only by luck, ... The only thing that counts is what the code does if used within the limits you actually specified, on a random host platform implementing standard C. ...
    (comp.arch.embedded)
  • Re: managed pool question
    ... You might get out-of-memory errors. ... > and I will load it all at once in loading time. ... > the amount of resources that will be loaded all at once is ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Lambda Calculus and Turing Equivalence
    ... memory of a TM exceeds the potential finite memory of a PC. ... principle compute problems that require greater storage than ... That is because the tape that Turing posited has no physical constraints. ... magically given an infinite amount of storage space." ...
    (comp.theory)
  • Re: Lambda Calculus and Turing Equivalence
    ... memory of a TM exceeds the potential finite memory of a PC. ... principle compute problems that require greater storage than ... That is because the tape that Turing posited has no physical constraints. ... magically given an infinite amount of storage space." ...
    (sci.math)