473,789 Members | 3,186 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1874
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.c omwrote in message
news:11******** **************@ m73g2000cwd.goo glegroups.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.co m

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT dot.state.fl.us wrote
in message news:ur******** ******@TK2MSFTN GP04.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.c omwrote in message
news:11******** **************@ m73g2000cwd.goo glegroups.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.c omwrote in
message news:%2******** ********@TK2MSF TNGP06.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.c omwrote
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
11745
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 server with SQL 2000 EE, 8GB of RAM, a min of 4GB and a max of 6GB is assigned to SQL server. I'm trying to work out whether we've assigned enough or too much/little memory to SQL server. My first thought was to let SQL dymanically manage its...
26
448
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 scope, the dtor could be immediately be called (no GC needed). For that, you don't have to declare the whole File class as a struct (which would be not good for performance when File has a lot of data-members). Instead creating a thin wrapper...
5
6166
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 insert in the front. My code is give below. Is it possible to do without using XMLDOcument? Dim masterDoc As String = Request.PhysicalApplicationPath & "PageViews.xml" Dim writer As XmlTextWriter = Nothing
40
4334
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 number of records. Both these numbers are known
2
3098
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 that both instances consume each 800 Mbytes of memory! I experimented with sp_configure and by giving both instances a fixed memory size. Both methods do not seem to have any effect. Can anybody explain me why SQL Server is using so much memory?
6
2297
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 to a web service on the other (not relevant I guess). Some stored procedures consume xml produced by DataSet objects (values as elements) using OPENXML statements. The application should be distributed among users having also Win98. Established...
19
676
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 or another. I have created a new method of doing OOP with C, something that fits my needs particularly well. I haven't encountered anything else like it, so I'm tossing it out to the Internet for comment. ...
47
3543
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, const Bytef *source, uLong sourceLen); It is meant to be called by C, but I would rather use it from C#. So I wrote the following C# program to test it, but it failed to work. The call to compress doesn't return or throw an exception, it simply...
8
2217
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? Especially when you're talking about marshalling the data back and forth across your network (although on the same segment)? Here's my scenario: Each login stores exactly 3 session variables; one integer and two strings. That's it. Never, ever,...
6
1925
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
10408
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10199
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10139
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9983
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9020
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6768
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4092
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3697
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.