Memory usage

Posted on 2004-08-31
Last Modified: 2010-04-15
I have this Windows Service running 24 / 7 (of course).

It seems to always be consuming more and more amounts of RAM as it runs.

How can I tell a memory leak versus normal operation?
Question by:Tom Knowlton
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2

Author Comment

by:Tom Knowlton
ID: 11945427
Actually...I watched it a little while longer and the memory usage went down about 1,000 K or so.

So, I guess memory is released from time to time as the service runs.

Expert Comment

ID: 11945658
the garbage collection takes care of releasing objects, but you never know when that's going to happen.

Author Comment

by:Tom Knowlton
ID: 11945676
So under the GC....are "memory leaks" even possible?

Accepted Solution

msdixon earned 500 total points
ID: 11945724
it's not supposed to happen, but i had a windows service that ended up consuming over 1 Gig of ram and eventually crashed the server. i traced through every line, and couldn't find why all that ram was being used up. it used a lot of file streams, but i used a "using" block for each of them.

how much ram is it using? anything between 20 - 70 mb is normal.

Author Comment

by:Tom Knowlton
ID: 11945737
Definitely between 20 and 70 MB.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

726 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