Solved

Memory usage

Posted on 2004-08-31
5
198 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:knowlton
  • 3
  • 2
5 Comments
 
LVL 5

Author Comment

by: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:knowlton
ID: 11945676
So under the GC....are "memory leaks" even possible?
0
 
LVL 9

Accepted Solution

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

Author Comment

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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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
compare between entities in entity framework 8 96
What Does This C# Code Block Do? 5 57
VB.NET 2008 Winforms Signing 13 32
C# MVC Insert Multiple Row into DB 2 30
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!
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

829 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