Using too much memory

  • Thread starter Thread starter IsRaEl
  • Start date Start date
I

IsRaEl

Hello,

I was wondering.

Is there any way to make Console app use less memory??

i just did a simple Console app that download some FTP files and use 9
mb!!!!!!!

I think it should use at max 1 mb!!!

Thanks
 
Hello ISRAEL,

I> I was wondering.
I> Is there any way to make Console app use less memory??
I> i just did a simple Console app that download some FTP files and use
I> 9 mb!!!!!!!
I> I think it should use at max 1 mb!!!

What makes u think so?


---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

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

If you search the archives you will see that 9MB is around the expected use
of a .net app

IMO this is not an issue, 9 MB is not that much after all
 
The thing is, that's not really the true memory usage of the app. It's
the working set, a radically different concept.

To truly find out how much memory your app is using, you need to look at
the performance counters.
 
message | The thing is, that's not really the true memory usage of the app. It's
| the working set, a radically different concept.
|

And the working set (Mem Usage in taskman) is actually the amount of RAM
occupied by the program, some of the WS pages might be shared with other
applications and some are private. That means that in reality the program
takes (some) less RAM depending on the amount of the shared pages mapped
into the process.


| To truly find out how much memory your app is using, you need to look
at
| the performance counters.
|

The working set (Mem Usage) is just a performance counter, now, it all
depends on what "kind" of memory you are looking for and why exactly you
need to know that.
In general the WS and (more important) 'Private bytes' are the ones to watch
for, but you will never know exactly how much RAM is taken by a process.

Willy.
 
Back
Top