Giter Site home page Giter Site logo

Comments (8)

Apache9 avatar Apache9 commented on August 23, 2024

“消耗完”具体是指什么操作?是比如你设置连接数最大是200,你只要操作200次就一定会挂?还是说跑了一段时间就挂了,并没有统计总共操作了多少次?

谢谢

from jodis.

tydldd avatar tydldd commented on August 23, 2024

定时任务,一段时间内取出200个redis实例,第201次就报错了

from jodis.

Apache9 avatar Apache9 commented on August 23, 2024

单线程顺序执行吗?

from jodis.

tydldd avatar tydldd commented on August 23, 2024

from jodis.

Apache9 avatar Apache9 commented on August 23, 2024

确认一下你依赖的jedis的版本?jodis引入的jedis应该是2.6+的,这个版本以后的jedis才可以通过直接close来归还连接,之前的版本不行。

谢谢

from jodis.

tydldd avatar tydldd commented on August 23, 2024

jedis版本是2.7.2的

from jodis.

tydldd avatar tydldd commented on August 23, 2024

jodis是0.2.1

from jodis.

Apache9 avatar Apache9 commented on August 23, 2024

那这比较奇怪了,这是2.7.x的jedis的close代码,看起来应该是归还了啊。

  @Override
  public void close() {
    if (dataSource != null) {
      if (client.isBroken()) {
        this.dataSource.returnBrokenResource(this);
      } else {
        this.dataSource.returnResource(this);
      }
    } else {
      client.close();
    }
  }

from jodis.

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.