Re: memory leak in asp 2.0

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I do not have recursion. The code is prety simple. At logon I open dataset and appropriate tableadapters and save them and few datatables in session. Some datatables I may fill on different pages. Some datatables I use on diferent tables to databind controls. May be dataadapter should be open for short time or control has hiden recursion.
Also it would be useful to know how much specific page gets in memory or when I leave it forever, so I can release it forever.
"Peter Bromberg [C# MVP]" <pbromberg@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:33459E2B-DCA6-4D79-982B-AD659623ED8F@xxxxxxxxxxxxxxxx
Aleks,
What you describe is not a normal operating condition and may very well be
caused by poorly written code (e.g, not closing connections, etc.)
Peter
--
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
bogMetaFinder: http://www.blogmetafinder.com



"Aleks Kleyn" wrote:

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.


.



Relevant Pages

  • Re: Persisting a Dataset
    ... it seems like the bulk of your memory would be taken up ... > datatable contains a list of possible medical diagnosis codes. ... >> which would load the table into memory and serve all the exes. ... One of these datatables has about 5000 ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Memory management strategy
    ... >>trading memory for speed ... The use of registers instead of the stack doesn't need inlining. ... >longer instructions to access smaller data than they were optimized for. ... square) but it didn't need recursion or some kind of stack. ...
    (comp.lang.c)
  • Re: Bounding memory usage
    ... could some of you guys give me pointers to some static analyzes ... that are able to determine when a program consumes a bounded amount of ... and then estimate the mean memory usage... ... (for example, by ignoring recursion and loops), or run into cases where the ...
    (comp.compilers)
  • Re: Same question - Why use a DataTable in ASP .NET?
    ... really need read-only access to the data, some developers prefer DataTables ... closed - thereby leaking connections to the database. ... When a good deal of memory is consumed, the web server starts ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Moving memory recordsets from ADO 2 to ADO.NET
    ... Use DataTables to store your data and build DataViews to index and allow ... You can minimize the memory used for changing tracking by always accepting ... > As part of the redesign of the application, I want to build a User Control ...
    (microsoft.public.data.ado)