c# - Memory problems in .NET -
i have c# service listens queue xml messages, receives them, processing them using xslts , writing them in database. process 60k messages day of 1mb each. memory when idle going down 100mb good. have started processing messages of 12 mb in size. blow memory , when idle has memory of 500mb. suggestions why might problem? don't think there memory leak have surfaced after processing many (60k messages of 1mb).
that looks fine. why think problem?
the garbage collector release unused memory, doesn't mean going happen service idle.
raymond chen has written article explaining basic idea of garbage collection:
however - pure speculation information given in questions - there might memory leaks related extension methods in xslt. extension methods may lead problems in case recompile stylesheet every time new xml document transformed. fix simple: once compiled, cache stylesheet.
Comments
Post a Comment