How can I work out why my .net service is chewing

2019-09-06 15:14发布

We have a .net c# service that when tured on is chewing up more and more memory. It has one 'Service' derived class that basically creates other objects that encapsulate individual functionality that the service is meant to support. Im thinking that maybe I am creating an object and its not getting garbage collected due to a programming error.

Anyone know the best way to find out what is going on without setting break points?

7条回答
你好瞎i
2楼-- · 2019-09-06 16:18

Create a text log and log everything that happens and work from there. Especially with a service this is the easiest way to find out what can be going wrong. Just print out events, the states of objects and their properties.

Maybe you can find something out that way.

Good luck to you

查看更多
登录 后发表回答