Code Monkey home page Code Monkey logo

Comments (5)

dmandalidis avatar dmandalidis commented on September 24, 2024

Hi @rwmajor2,

No it won't solve such errors as it simply replaces autovalue with immutables not Guava entirely. However, this seems like a bug to me, does it happen consistently?

from docker-client.

rwmajor2 avatar rwmajor2 commented on September 24, 2024

@dmandalidis One more random question; sorry this is not on topic of this issue. Should I always be diligent to docker.close() any docker connections I create? Seems like I have a memory leak in my application but I noticed I don't .close() any of my connections that I create.

from docker-client.

dmandalidis avatar dmandalidis commented on September 24, 2024

@rwmajor2 as a general rule of thumb you should always close the connections you open and if you don't, you have the ideal memory leak candidate :) However, constructing a new DockerClient each time is very expensive since two javax.ws.rs.client.Client are created along. The Jersey implementation guarantees thread safety but I will need to check if the DefaultDockerClient has the same guarantees which is actual the answer to your comment in #45.

from docker-client.

rwmajor2 avatar rwmajor2 commented on September 24, 2024

@dmandalidis Ok, thanks. I had tried to reuse a DockerClient instance for each thread but kept running into problems reusing it. But, perhaps I didn't know what I was doing exactly.

from docker-client.

dmandalidis avatar dmandalidis commented on September 24, 2024

Hi @rwmajor2

Spent some time investigating the thread safety issues you mentioned here and in #45. To my understanding, the DefaultDockerClient is thread-safe. I 'm closing this issue, and if I 'm wrong, please open a bug with a code-block reproducing the problem.

from docker-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.