Memory utilization for Windows services

J

Jay Kavimandan

Hello ,
I am using Windows Services created in VsNET2002 in my Project.The Memory utilization of Services goes on Incrasing from around 20 Mb to 200 Mb in no duration.
The services is a Multithreaded and Number of instances are created rapidly,so the Objects are created rapidly on the stack.Is there any method to Set the Object to Nothing and free up the memory before the Garbage collecter will do its work ???

Thanks,
Jay
 
P

Prasad

you are not specified the .net language you have used

in vb.net say object = nothing
in c#, object =null;

or else you can use the object's Finalize() in vb.net

you can call GC.Collect() method which Forces garbage collection
Hello ,
I am using Windows Services created in VsNET2002 in my Project.The Memory utilization of Services goes on Incrasing from around 20 Mb to 200 Mb in no duration.
The services is a Multithreaded and Number of instances are created rapidly,so the Objects are created rapidly on the stack.Is there any method to Set the Object to Nothing and free up the memory before the Garbage collecter will do its work ???

Thanks,
Jay
 

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

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top