Solved

Memory leakage

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now