I have created a windows service that starts a thread which writes periodically to a database.
It is doing the job that I wanted but there is a problem.
In the task manager the process that starts by teh service increases in memory usage, 8 KB every 30 seconds.
Since the service is ment to be ran 24 hours a day. I think that the memory usage increasing is a problem.
Does anybody know how to handle this?
Thanks in advance.
Loading
eno onePosted Dec 8, 2008, 5:43 AM
eno onePosted Dec 8, 2008, 5:40 AM
the memory it is using is written in the database every 10 seconds and that is why i created the while(true) loop.
If I want to stop this thread I can do from teh service, but the service will start only once and will run continuosly.
Inside the loop I don't initialize any object.
I wish I was clear with the explanations.
IF you have any idea please don't hesitate to write it.
Thanks again.
Ryan AlfordPosted Dec 7, 2008, 11:19 PM
Ryan AlfordPosted Dec 7, 2008, 12:12 PM