Web Application and Memory

F

fabrice

Hello

I 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
 
M

Michael Nemtsev

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top