Giter VIP home page Giter VIP logo

Comments (3)

johnkattenhorn avatar johnkattenhorn commented on August 24, 2024

So we've confirmed today that the OnDeactivate method is being called on the Actor and that Actor no longer appears in the memorydump but I can't think of a way to remove the child logger from the memory.

@alexmg, @nblumhardt - would simply setting the ILogger to null work ? How about casting the return ILogger to Logger so I can run the Dispose method on it?

Maybe I'm getting hung up in the memory dump; if it's not in Gen2 it should be ok right unless (%) Timespent in GC gets too high.

from autofac.servicefabric.

nblumhardt avatar nblumhardt commented on August 24, 2024

ForContext returns an ILogger which does'nt implement IDisposable that this logger does not have cleanup up even after the Actor is deactivated.

The loggers returned by ForContext don't implement IDisposable because they don't need any clean-up. If they're hanging around, it'll be because some other retained object is referencing them (or just that GC hasn't run on a high enough generation, yet).

HTH!

from autofac.servicefabric.

tillig avatar tillig commented on August 24, 2024

Hopefully this has helped; if not, StackOverflow might get you an answer sooner.

from autofac.servicefabric.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.