?
Solved

Memory usage

Posted on 2004-08-31
5
Medium Priority
?
203 Views
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?
0
Comment
Question by:Tom Knowlton
[X]
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
5 Comments
 
LVL 5

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.
0
 
LVL 9

Expert Comment

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

Author Comment

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

Accepted Solution

by:
msdixon earned 2000 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.
0
 
LVL 5

Author Comment

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

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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.…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

801 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