Solved

Memory leakage

Posted on 2004-08-06
4
214 Views
Last Modified: 2010-04-15
I'm on the tail end of building my app.  Before I left last night I started it and memory was 19,252K.  This morning it was up to 22,088.  

Questions:  
What's an acceptable level?  
How do you begin to track these leaks down?
0
Comment
Question by:natejacobs
4 Comments
 
LVL 4

Accepted Solution

by:
NTAC earned 500 total points
ID: 11735121
If you are using C#, there isn't any memory leaks.  There is a garbage collector that will de-allocate all your unused object,variables, structs...

What you are most likely seeing is just the growing/shrinking of your data that you are using in your program.  19-22 megs is not bad at all.  When your computer starts slowing down noticibly because you are using up the entire memory and the OS is forced to start paging everything--that's when you need to worry.

0
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 11735710
there could possibly be leaks of unmanaged memory if you are using pinvoke calls ... if you are only using managed code this is perfectly normal, garbage collection will handle this for you.
0
 
LVL 8

Expert Comment

by:Razzie_
ID: 11736574
0
 
LVL 9

Expert Comment

by:msdixon
ID: 11738037
i had a windows service that would incrementally consume more and more memory. up to a gig in fact. but not to worry, the os will freeze when it's doing that much paging. it's quite fun to see the IT director's face that lovely shade of magenta.

i never did find the problem, and don't work there any more... maybe you should just find a new job.

so, to answer your question, 22 meg is quite small for a .net app.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question