GithubHelp home page GithubHelp logo

Comments (4)

spkrka avatar spkrka commented on August 15, 2024

Thank you for the report! I don't have much time to look into in detail right now, but I'd like to understand more about why the connections aren't closed before adding bandaids (hopefully the underlying bug can be fixed instead).

Is this a minimal test? I don't quite understand why you need two memcached instances. I guess you moving the servers to the background will timeout requests to the memcached, so folsom should close and retry, and somewhere at this point one or more of the connections is not properly closed.

from folsom.

eranharel avatar eranharel commented on August 15, 2024

Sorry for the late response, I wanted to have something useful to add to this report...

It turns out my initial test doesn't recreate the bug :(
I tested it with the previous folsom version by mistake. Once I upgraded the test doesn't recreate the bug.

How ever, in production I see a growing number of com.spotify.folsom.client.DefaultRawMemcacheClient instances when the connection count increases when I produce a class histogram.
I read the code several times and it seems to be correct, but I may mistaken, or maybe the channel.close() doesn't complete for some reason.

I took several heap dumps, and will try to analyse tomorrow once the download completes.

from folsom.

spkrka avatar spkrka commented on August 15, 2024

Interesting, I am not sure if that's a leak or if it's simply that the GC doesn't think it's important to collect them just yet.

from folsom.

eranharel avatar eranharel commented on August 15, 2024

Closed as it turns out we were working with the 0.7.1 client, even though I was sure we worked with the latest...
Sorry if this wasted anyone's time :(

from folsom.

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.