• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 207
  • Last Modified:

Memory usage

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
Tom Knowlton
Asked:
Tom Knowlton
  • 3
  • 2
1 Solution
 
Tom KnowltonWeb developerAuthor Commented:
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
 
msdixonCommented:
the garbage collection takes care of releasing objects, but you never know when that's going to happen.
0
 
Tom KnowltonWeb developerAuthor Commented:
So under the GC....are "memory leaks" even possible?
0
 
msdixonCommented:
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
 
Tom KnowltonWeb developerAuthor Commented:
Definitely between 20 and 70 MB.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now