GithubHelp home page GithubHelp logo

Comments (4)

bill2004158 avatar bill2004158 commented on June 1, 2024

the log is:

log.error("++++ failed to get SockIO obj for: " + host);

can you add error msg in the logger.
so we can make sure why connection fail.

from memcached-java-client.

newroot avatar newroot commented on June 1, 2024

In 2.5.x, failback and failover and mocked in our real implementation. Since due to our investigation, we found it slow down the performance.

DirectBuffer can increase the performance, while if the memcached server crashed, it will always allocate direct buffer and wait for the gc of VM. It will finally cause OutOfMemoryError.

from memcached-java-client.

newroot avatar newroot commented on June 1, 2024

In version 2.6.0, we enabled the log of detailed error information, but we still didn't add failover support.

Since if we do like this, it will never failback. While in current implementation, failback is automatic.

If we get rid of the direct buffer, we can solve the OutOfMemoryError. We will do a deep investigation for this issue.

Thanks anyway for the information.

from memcached-java-client.

mengli avatar mengli commented on June 1, 2024

Hi bill2004158,

We add "failback" support in release 2.6.1 which you can download and have a try.

We also re-implement the connection pool based on Apache commons pool in this release and OutOfMemory error disappeared in our test.

Really thank you for your suggestion.

Meng Li

from memcached-java-client.

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.