Home All Groups Group Topic Archive Search About

Windows Service Memory Usage.

Author
1 Apr 2007 1:58 AM
Greg
Hi,

I previously posted this in the performance newsgroup but thought I
might get some better exposure here.

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

Author
1 Apr 2007 8:27 AM
Henning Krause [MVP - Exchange]
Hello,

the only thing that will help you here is profiling. Get the Memory profiler
from Scitect (they have a 30 day trial period) and profile the memory usage.
This will give you hints where the memory is being used.

Best regards,
Henning Krause

Show quote
"Greg" <grtho***@magma.ca> wrote in message
news:1175392693.136882.64050@p77g2000hsh.googlegroups.com...
> Hi,
>
> I previously posted this in the performance newsgroup but thought I
> might get some better exposure here.
>
> 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
>

AddThis Social Bookmark Button