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