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

Ryan AlfordRank #1,411 · 1.2K reputationPosted Dec 7, 2008, 7:12 AM EST
Ryan AlfordRank #1,411 · 1.2K reputationPosted Dec 7, 2008, 6:19 PM EST
eno one14 reputationPosted Dec 8, 2008, 12:40 AM EST
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.
eno one14 reputationPosted Dec 8, 2008, 12:43 AM EST