Windows Service (Physical memory)

J

Jack

I wrote a test windows service in VB.NET. All it does is
instantiate a class (test class with just a Name
property) and set it's Name property on OnStart.
I installed the service using installutil.exe and start
the service and look it up in the Task Manager. It uses
about 7600 K of memory. (priority is normal)

Question:
Why is the memory footprint so high?

(compared to all other services that are much much lower)
 
J

Jerry Ham

the other services are written in C or C++ and don't have the overhead
associated with the CLR.
 
H

Herfried K. Wagner [MVP]

* "Jack said:
I wrote a test windows service in VB.NET. All it does is
instantiate a class (test class with just a Name
property) and set it's Name property on OnStart.
I installed the service using installutil.exe and start
the service and look it up in the Task Manager. It uses
about 7600 K of memory. (priority is normal)

Question:
Why is the memory footprint so high?

The Service is implemented in .NET, so it will require the CLR and some
huge libraries. You shouldn't worry too much about that.

;-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top