Home All Groups Group Topic Archive Search About
Author
8 Sep 2006 6:30 PM
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

Author
8 Sep 2006 6:37 PM
Michael Nemtsev
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 Nietzsche
Are all your drivers up to date? click for free checkup

Author
8 Sep 2006 6:40 PM
Ignacio Machin ( .NET/ C# MVP )
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


--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation



Show quoteHide quote
"IsRaEl" <yzr***@gmail.com> wrote in message
news:1157740217.063862.173710@m73g2000cwd.googlegroups.com...
> 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
>
Author
8 Sep 2006 7:46 PM
Nicholas Paldino [.NET/C# MVP]
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.


--
          - Nicholas Paldino [.NET/C# MVP]
          - mvp@spam.guard.caspershouse.com

Show quoteHide quote
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:urJ9QZ30GHA.4656@TK2MSFTNGP04.phx.gbl...
> 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
>
>
> --
> --
> Ignacio Machin,
> ignacio.machin AT dot.state.fl.us
> Florida Department Of Transportation
>
>
>
> "IsRaEl" <yzr***@gmail.com> wrote in message
> news:1157740217.063862.173710@m73g2000cwd.googlegroups.com...
>> 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
>>
>
>
Author
8 Sep 2006 8:45 PM
Willy Denoyette [MVP]
"Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard.caspershouse.com> wrote in
message news:%23wIKt830GHA.4796@TK2MSFTNGP06.phx.gbl...
|    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.
Author
8 Sep 2006 9:36 PM
Chris Mullins
"IsRaEl" <yzr***@gmail.com> wrote
> Is there any way to make Console app use less memory??

Well, it's not really using that much memory.

The answer to how to "Fix" it can be found at:

http://www.coversant.net/dotnetnuke/Default.aspx?tabid=88&EntryID=4

--
Chris Mullins, MCSD.NET, MCPD:Enterprise
http://www.coversant.net/blogs/cmullins

Bookmark and Share