Solved

Memory usage

Posted on 2004-08-31
5
197 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

776 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