Giter VIP home page Giter VIP logo

Comments (4)

djc avatar djc commented on May 31, 2024

Hi, I'm sorry you're having this problem with bb8. I don't think it's useful for me to try drill down into the exact differences between your dumb pool and bb8, but if you can come up with a minimal reproduction using bb8 then I could potentially try to debug it.

from bb8.

nappa85 avatar nappa85 commented on May 31, 2024

I created a minimalistic application https://gist.github.com/nappa85/4e0d5af23a3600fed9a73a26639fae68
Just edit redis url and key if needed, and maybe webserver port if already taken.
At first launch, netstats sees this:

tcp        0      0 127.0.0.1:42590     127.0.0.1:6379      ESTABLISHED 1000       653292     125612/target/relea 
tcp        0      0 127.0.0.1:42582     127.0.0.1:6379      ESTABLISHED 1000       653288     125612/target/relea 
tcp        0      0 127.0.0.1:42598     127.0.0.1:6379      ESTABLISHED 1000       653296     125612/target/relea 
tcp        0      0 127.0.0.1:42584     127.0.0.1:6379      ESTABLISHED 1000       653289     125612/target/relea 
tcp        0      0 127.0.0.1:42588     127.0.0.1:6379      ESTABLISHED 1000       653291     125612/target/relea 
tcp        0      0 127.0.0.1:42596     127.0.0.1:6379      ESTABLISHED 1000       653295     125612/target/relea 
tcp        0      0 127.0.0.1:42592     127.0.0.1:6379      ESTABLISHED 1000       653293     125612/target/relea 
tcp        0      0 127.0.0.1:42594     127.0.0.1:6379      ESTABLISHED 1000       653294     125612/target/relea 
tcp        0      0 127.0.0.1:42600     127.0.0.1:6379      ESTABLISHED 1000       653297     125612/target/relea```

After first call to localhost:3000:
```tcp        0      0 127.0.0.1:42586     127.0.0.1:6379      ESTABLISHED 1000       653290     125612/target/relea 
tcp        0      0 127.0.0.1:42590     127.0.0.1:6379      ESTABLISHED 1000       653292     125612/target/relea 
tcp        0      0 127.0.0.1:42582     127.0.0.1:6379      ESTABLISHED 1000       653288     125612/target/relea 
tcp        0      0 127.0.0.1:42716     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42708     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42598     127.0.0.1:6379      ESTABLISHED 1000       653296     125612/target/relea 
tcp        0      0 127.0.0.1:42704     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42712     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42584     127.0.0.1:6379      ESTABLISHED 1000       653289     125612/target/relea 
tcp        0      0 127.0.0.1:42702     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42720     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42588     127.0.0.1:6379      ESTABLISHED 1000       653291     125612/target/relea 
tcp        0      0 127.0.0.1:42596     127.0.0.1:6379      ESTABLISHED 1000       653295     125612/target/relea 
tcp        0      0 127.0.0.1:42592     127.0.0.1:6379      ESTABLISHED 1000       653293     125612/target/relea 
tcp        0      0 127.0.0.1:42594     127.0.0.1:6379      ESTABLISHED 1000       653294     125612/target/relea 
tcp        0      0 127.0.0.1:42714     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42718     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42706     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42600     127.0.0.1:6379      ESTABLISHED 1000       653297     125612/target/relea 
tcp        0      0 127.0.0.1:42710     127.0.0.1:6379      TIME_WAIT   0          0          -                  ```

After second call:
```tcp        0      0 127.0.0.1:42586     127.0.0.1:6379      ESTABLISHED 1000       653290     125612/target/relea 
tcp        0      0 127.0.0.1:42590     127.0.0.1:6379      ESTABLISHED 1000       653292     125612/target/relea 
tcp        0      0 127.0.0.1:42582     127.0.0.1:6379      ESTABLISHED 1000       653288     125612/target/relea 
tcp        0      0 127.0.0.1:42744     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42716     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42730     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42708     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42726     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42598     127.0.0.1:6379      ESTABLISHED 1000       653296     125612/target/relea 
tcp        0      0 127.0.0.1:42738     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42704     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42712     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42584     127.0.0.1:6379      ESTABLISHED 1000       653289     125612/target/relea 
tcp        0      0 127.0.0.1:42702     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42736     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42720     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42588     127.0.0.1:6379      ESTABLISHED 1000       653291     125612/target/relea 
tcp        0      0 127.0.0.1:42740     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42596     127.0.0.1:6379      ESTABLISHED 1000       653295     125612/target/relea 
tcp        0      0 127.0.0.1:42592     127.0.0.1:6379      ESTABLISHED 1000       653293     125612/target/relea 
tcp        0      0 127.0.0.1:42594     127.0.0.1:6379      ESTABLISHED 1000       653294     125612/target/relea 
tcp        0      0 127.0.0.1:42734     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42714     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42718     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42706     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42600     127.0.0.1:6379      ESTABLISHED 1000       653297     125612/target/relea 
tcp        0      0 127.0.0.1:42728     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42710     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42732     127.0.0.1:6379      TIME_WAIT   0          0          -                   
tcp        0      0 127.0.0.1:42742     127.0.0.1:6379      TIME_WAIT   0          0          -                  ```

from bb8.

nappa85 avatar nappa85 commented on May 31, 2024

I just found the problem, it was all my fault since the beginnig.
I wrote const instead of static on the pool, this way a new pool is initialized every time it's used...
Sorry for having make you waste your time

from bb8.

djc avatar djc commented on May 31, 2024

Luckily I hadn't spent much time on it yet! Happy you managed to solve it.

from bb8.

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.