473,385 Members | 1,192 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,385 software developers and data experts.

About memory usage

I've made a testing program to test the memory usage of some Data Forms.
I create a MDI parent form with one single MDI child form, which is a Data
Form generated by .NET Data Form Wizard.

To test the stuff, I keep to open that child data form for about 10 times.
the memory usage shown in GC and task manager both increase.

Then I close all those forms. and perform GC collect. The memory usage shown
in GC falls, however, the memory usage shown in task manager keeps unchanged.

May I know if there's any method I could really release the memory used?
what exactly cache or unreleased in the memory? DataSet?

Need help. Thanks!
Nov 22 '05 #1
2 2016
Jarvis,

When you will search these dotNet newsgroups you will see thousands of
messages which say, don't look at your taskmanager for your memory because
that does not give the right information.

Than on your and others next question "How can I manage my own memory?.
There are long threads of messages, which ends mostly with "Don't bother
about it, because that is the reason it is managed code".

I hope this helps,

Cor
Nov 22 '05 #2
CMM
The Task Manager mem usage has been one of the most misunderstood elements of
Windows for years and years. The mem usage (or "working set" I believe) says
nothing about how much memory a program is actually using... only how much
memory Windows is currently allotting to it in RAM. This can shrink and grow
as windows pages things in and out of memory. The program could be using 2k
of 10mb that Windows has given it. If Windows needs that memory back it'll
just shrink or swap out part of the set.... and vice versa.

When a program first loads it in essense requests a block of memory. Some
programs (compiled with the "tiny" directives in C++) request less. Others
request more. In addition the dll's loaded up may request additional storage
also. But, it doesn't mean they actually use it. In fact, most of the time,
they don't. And if they need "more" Windows gives it to them by taking it
away (swapping it out) from other programs or shrinking the disk cache.

"Jarvis" wrote:
I've made a testing program to test the memory usage of some Data Forms.
I create a MDI parent form with one single MDI child form, which is a Data
Form generated by .NET Data Form Wizard.

To test the stuff, I keep to open that child data form for about 10 times.
the memory usage shown in GC and task manager both increase.

Then I close all those forms. and perform GC collect. The memory usage shown
in GC falls, however, the memory usage shown in task manager keeps unchanged.

May I know if there's any method I could really release the memory used?
what exactly cache or unreleased in the memory? DataSet?

Need help. Thanks!

Nov 22 '05 #3

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

Similar topics

2
by: Mike Peretz | last post by:
I am trying to optimize my C# program, but no matter what I try the application keeps eating memory. I verified all the references and even got special software to count references. I made sure all...
5
by: Justice | last post by:
Currently I'm doing some experimenting with the XMLHTTP object in Javascript. Now, the XMLHttp object is asynchronous (at least in this case), and the following code causes a significant memory...
2
by: tomvr | last post by:
Hello I have noticed some 'weird' memory usage in a vb.net windows app The situation is as follows I have an app (heavy on images) with 2 forms (actually there are more forms and on starting...
2
by: Jarvis | last post by:
I've made a testing program to test the memory usage of some Data Forms. I create a MDI parent form with one single MDI child form, which is a Data Form generated by .NET Data Form Wizard. To...
20
by: Philip Carnstam | last post by:
How come .Net applications use so much memory? Every application I compile uses at least 10 MB of memory, even the ones consisting of only a form and nothing else. If I minimize them though the...
7
by: Rich Denis | last post by:
Hello, I have been trying to solve a mysterious memory leak problem and was hoping that you could help me out on my stuck point. First a bit of background. We have two app servers in an app...
1
by: kiplring | last post by:
List<string> effectList = new List<string>(); effectList.Clear(); effectList = null; using (List<string> effectList = new List<string>()) { } If there are so many calls, I should save as...
1
by: Frank Rizzo | last post by:
I have an application (windows service) that in the beginning reads data rapidly into a collection of large object trees. Each object tree in the collection is about 100mb and typically there are...
1
by: yzghan | last post by:
Hi all, I feel that my python script is leaking memory. And this is a test I have: log.write(" " + "test() ... memory usage: " + " ".join(repr(i/(1024*1024)) for i in getMemInfo()) + "\n") m...
5
by: Ian Boyd | last post by:
Customer is running a load test against a websphere application that uses DB2. While the load test is running the memory usage of DB2 climbs from x up to y. When the load test ends, the memory...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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.