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

Memory usage problem

Hello!
I have windows forms app (C# 2.0) which take about 60MB ram. I noticed
when I minimize it then memory usage drops to about 4MB. When I
maximize it then memory usage is about 16MB and then it is constant.
What is the reason of such behaviour ?

Regards.
Sebastian

Jan 10 '07 #1
3 1212
sebapi wrote:
I have windows forms app (C# 2.0) which take about 60MB ram. I noticed
when I minimize it then memory usage drops to about 4MB. When I
maximize it then memory usage is about 16MB and then it is constant.
What is the reason of such behaviour ?
The number you're looking at is almost certainly not memory usage, but
working set. Read a book like Microsoft Windows Internals if you want to
know all the details.

If not, don't worry about it, but do keep this in mind: memory that
isn't being used in some way is being wasted (literally), and
applications that use GC are more efficient (in amortized collection
time) the more memory they use, therefore using more memory means faster
applications.

-- Barry

--
http://barrkel.blogspot.com/
Jan 10 '07 #2
"sebapi" <se****@op.plwrote:
I have windows forms app (C# 2.0) which take about 60MB ram. I noticed
when I minimize it then memory usage drops to about 4MB. When I
maximize it then memory usage is about 16MB and then it is constant.
What is the reason of such behaviour ?
The answer is here:
http://www.coversant.net/dotnetnuke/...d=88&EntryID=4

--
Chris Mullins, MCSD.NET, MCPD:Enterprise, MVP C#
http://www.coversant.net/blogs/cmullins
Jan 10 '07 #3
More memory usage doesn't always mean faster applications. What it means is
that the GC doesn't have to work as often which should speed up your
application to a point. However, if your working set exceeds the available
physical memory, your application will start to slow down as Windows swaps
parts of it to disk.

Mike Ober.

"Barry Kelly" <ba***********@gmail.comwrote in message
news:9m********************************@4ax.com...
sebapi wrote:
>I have windows forms app (C# 2.0) which take about 60MB ram. I noticed
when I minimize it then memory usage drops to about 4MB. When I
maximize it then memory usage is about 16MB and then it is constant.
What is the reason of such behaviour ?

The number you're looking at is almost certainly not memory usage, but
working set. Read a book like Microsoft Windows Internals if you want to
know all the details.

If not, don't worry about it, but do keep this in mind: memory that
isn't being used in some way is being wasted (literally), and
applications that use GC are more efficient (in amortized collection
time) the more memory they use, therefore using more memory means faster
applications.

-- Barry

--
http://barrkel.blogspot.com/


Jan 11 '07 #4

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

Similar topics

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...
3
by: Ian Taite | last post by:
Hello, I'm exploring why one of my C# .NET apps has "high" memory usage, and whether I can reduce the memory usage. I have an app that wakes up and processes text files into a database...
7
by: George Gre | last post by:
Hi, I wrote a c# programme that listens to incoming TCP requests and services them. This programme is meant to be running as long as the server its installed on is running. So we assume for...
7
by: Clement | last post by:
hi, i have an asp.net site and is using SQL Server 2k. i realize the aspnet_wp.exe memory usage keep growing and i will receive an error for the pages that call the sql connection. others page...
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...
4
by: Hermann Maier | last post by:
hi, i need to find out the memory usage of a specific function that i use in my program. this function does some recursive calculations and i want my program to display the amount of memory the...
9
by: jeungster | last post by:
Hello, I'm trying to track down a memory issue with a C++ application that I'm working on: In a nutshell, the resident memory usage of my program continues to grow as the program runs. It...
17
by: frederic.pica | last post by:
Greets, I've some troubles getting my memory freed by python, how can I force it to release the memory ? I've tried del and gc.collect() with no success. Here is a code sample, parsing an XML...
1
by: Jean-Paul Calderone | last post by:
On Tue, 22 Apr 2008 14:54:37 -0700 (PDT), yzghan@gmail.com wrote: The test doesn't demonstrate any leaks. It does demonstrate that memory usage can remain at or near peak memory usage even after...
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...

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.