HighTechTalks DotNet Forums  

Service Memory Usage

Dotnet Framework (Performance) microsoft.public.dotnet.framework.performance


Discuss Service Memory Usage in the Dotnet Framework (Performance) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Greg
 
Posts: n/a

Default Service Memory Usage - 03-30-2007 , 05:20 PM






Hi,

I have a windows service thats sole purpose is to cache a large set of
data from a web service. The service writes the data to cache and
makes it available to all clients. I have seen a drop in load time of
the data from 8s to 2s.

The windows service subscribes to an event from the web service to get
dataset changes and write them out to the cache as they occur.

What I don't understand is why the memory usage is so high. Most
times it hovers at around 100MB... but there are times when I have
left the service running for a couple of days and seen it at 500MB -
700MB?

The only other thing the service does is write out a log file of when
it generated events and that it is listening to the web service for
events.

Any ideas? I don't think it should be this high.

Greg


Reply With Quote
  #2  
Old   
Miha Markic
 
Posts: n/a

Default Re: Service Memory Usage - 04-10-2007 , 04:02 PM






Hi Greg,

Unless you are doing somethign wrong you are probably seeing garbage
collection at work - the memory reported isn't really used and if it becomes
required by some other app then GC will release it.
To accurately measure the memory usage you should resort to a memory
profiler.

--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

"Greg" <grthomas (AT) magma (DOT) ca> wrote

Quote:
Hi,

I have a windows service thats sole purpose is to cache a large set of
data from a web service. The service writes the data to cache and
makes it available to all clients. I have seen a drop in load time of
the data from 8s to 2s.

The windows service subscribes to an event from the web service to get
dataset changes and write them out to the cache as they occur.

What I don't understand is why the memory usage is so high. Most
times it hovers at around 100MB... but there are times when I have
left the service running for a couple of days and seen it at 500MB -
700MB?

The only other thing the service does is write out a log file of when
it generated events and that it is listening to the web service for
events.

Any ideas? I don't think it should be this high.

Greg



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.