-1

I had made a windows service following this article - https://msdn.microsoft.com/en-us/magazine/mt703436.aspx. All works fine and I felt like I’m a real programmer). But I have a problem - this service consumes too much memory. In fact, for about 6 hours service consumed 3 Gb memory and I think it’s not very good. Maybe anyone faced with this problem and resolve it? Maybe someone could help me? I put my code here - http://paste.ubuntu.com/24169803/.

Thanks in advance.

1 Answers1

0

I've read the article you used for creating a service. Can't tell for sure without seeing your code but you are probably missing garbage cleaners.

[System.GC]::Collect()
Kirill Pashkov
  • 3,118
  • 1
  • 15
  • 20