473,378 Members | 1,346 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Using too much memory

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

Sep 8 '06 #1
5 1850
Hello ISRAEL,

II was wondering.
IIs there any way to make Console app use less memory??
Ii just did a simple Console app that download some FTP files and use
I9 mb!!!!!!!
II 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
Sep 8 '06 #2
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" <yz****@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.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

Sep 8 '06 #3
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]
- mv*@spam.guard.caspershouse.com

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.uswrote
in message news:ur**************@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" <yz****@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.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


Sep 8 '06 #4

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:%2****************@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.


Sep 8 '06 #5
"IsRaEl" <yz****@gmail.comwrote
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/...d=88&EntryID=4

--
Chris Mullins, MCSD.NET, MCPD:Enterprise
http://www.coversant.net/blogs/cmullins
Sep 8 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Tim Richardson | last post by:
I've been doing a lot of reading on this and my head is starting to hurt! It seems to be quite a feat to work out how much memory is actually being used by our server. I'm running W2K advanced...
26
by: codymanix | last post by:
Last night I had several thought about RAII and want to discuss a bit. Why doesn't CSharp support destructors in structs? Wouldn't that make RAII possible like in C++? When the struct goes out of...
5
by: reddy | last post by:
I am trying to insert a node into an XMLFile. using XMLTextwriter. My Question is Is it possible to do without using XMLDocument. Because its loading all the the file into memory. I just want to...
40
by: Elijah Bailey | last post by:
I want to sort a set of records using STL's sort() function, but dont see an easy way to do it. I have a char *data; which has size mn bytes where m is size of the record and n is the...
2
by: Evert Wiesenekker | last post by:
I have two instances of SQL Server running on my Development machine. I am having some performance problems and while investigating the problem I saw with the Process Explorer form Sysinternals...
6
by: Andrzej | last post by:
Used to read newsgroup for answers, now have to ask for them as well. I have an application (C#, .NET 1.1) that connects to local db on MSDE 2000 SP3a (using ADO from MDAC 2.71) on one side and...
19
by: Kamilche | last post by:
I have looked at many object-oriented programming frameworks out there for C. Though the ideas presented are intriguing, and I've used some of them in my own work, they all suffered some drawback...
47
by: Bonj | last post by:
I downloaded the gzlib library from zlib in order to do compression. (http://www.gzip.org/zlib) The prototype of the compression function seems to be int compress (Bytef *dest, uLongf *destLen,...
8
by: GeekBoy | last post by:
I understand the benefit of pushing the StateServer process onto another computer to "balance" the load and take some cpu and memory usage off the web server, but how much could it possibly help?...
6
by: PencoOdStip | last post by:
Why using the new keyword at all for memory allocation? I mean,why not let c++ find memory for you variable automatically? so insted of : int proba; proba = new int; why not just :
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.