Re: Web Application and Memory



Hello Fabrice,

What is kind of app - Winforms or WebForms?
As I understand u use DataSet, right?
What's the size of selecting data?
if each user select 5 megabites of data x 10 user x number of requests + time when data will be GCedd thus u can get such memmory using

For example in case of using DataSet in ASP.net memory consumption of data is increased in 4 times. But this is a specific of ASP.net

F> Hello
F> F> I m testing my application based on the framework 1.1 with few users.
F> I m worried about the memory of my server. I can notice a terrifying
F> increase of memoring using by my application server.
F> For example, before start application, the memory using is about
F> 280mo.
F> After starting the application and 10 minutes of utilisation by 10
F> users.... the memory has grown to 480mo !!!
F> F> I don't understand why. I have try to be clean in my code (vb.net)
F> and liberate all my object as soon as i can by the nothing and
F> dispose codes.
F> F> for example in my code :
F> F> 'dispose of the Dataset/adaptater objects
F> myDataSet.Dispose()
F> myDataSet=Nothing
F> myAdapter.Dispose()
F> myAdapter=Nothing
F> or
F> 'dispose command object
F> objCmd.Dispose()
F> objCmd = Nothing
F> or for the variable :
F> F> var1=Nothing
F> F> So do i have made a mistake or forgotten something ?
F> Is it normal to see this situation of the memory ? Does this increase
F> will
F> stop one day ???
F> Thanks for your help
F> fabrice
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not cease to be insipid." (c) Friedrich Nietzsche


.



Relevant Pages

  • Re: Using Objects from another class to decrease Mem Usage
    ... and then call Dispose *immediately* after you ... IDisposable has no effect on the memory usage if your resources are ... static void Main ... if the GC runs after DoSomething it will not touch the test ...
    (microsoft.public.dotnet.general)
  • Re: Close - No Dispose - Memory Leak?
    ... I expect that in many cases close vs dispose issues are a red herring. ... are usually not the reason for issues with memory or object (connection ... complete N tasks/second and if the load stays below that level it works ... asking other applications to release memory). ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Memory Leak Experts!!!!
    ... > However as soon as app is restored all this memory is swapped back. ... > DataSet Dispose for example doesn't touch tables and rows. ... > free references in due time. ...
    (microsoft.public.dotnet.framework.performance)
  • Re: Best practice using large objects in foreach
    ... I dont't think there would be no halt because the objects remain in gen1. ... And on the server side GC is concurrent. ... it's always imperative to Dispose() as fast as you can. ... so you will see the memory usage ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How much do you leave to VB.Net GARBAGE COLLECTION???
    ... The first time that is checked if it can be destructed is as you invoke the method dispose as that is a member of the object or a member of its parent class. ... Not fysical direct, as one of the goals is that the GC does its work as it is needed in a kind of batch, to get the highest real performance, which is of course not when there is/are more then enough memory and resources available. ... Setting something to nothing means that you set the reference of the object to nothing. ... Dim myObject as New Object ...
    (microsoft.public.dotnet.languages.vb)