V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
JasonLaw
V2EX  ›  Java

对象池 maxIdle 的作用是什么?

  •  
  •   JasonLaw · 2022-03-14 14:04:37 +08:00 · 1172 次点击
    这是一个创建于 771 天前的主题,其中的信息可能已经有所发展或是发生改变。

    spring-boot/RedisProperties.java at v2.6.4 · spring-projects/spring-boot中,有一个 maxIdle 属性,不过我不太理解它的具体作用是什么。

    我看了What is the difference between maxActive vs. maxIdle for Tomcat connection pools? - Stack Overflow,怎么感觉 maxIdle 跟 minIdle 的作用是一样的呢?它们两个的区别到底是什么?


    我看到brettwooldridge/HikariCP: 光 HikariCP・A solid, high-performance, JDBC connection pool at last.是没有 maxIdle 的,只有 minimumIdle 和 maximumPoolSize 。

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1107 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 18:47 · PVG 02:47 · LAX 11:47 · JFK 14:47
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.