Solved

Memory leakage

Posted on 2004-08-06
4
215 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
System.Security 2 28
What can cause the styling on a .NET site to not be found? 17 28
Cant save 3D 4 22
Can I command line build a C# application? 6 40
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

791 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