V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
JasonLaw
V2EX  ›  Java

对象池 maxIdle 的作用是什么?

  •  
  •   JasonLaw · Mar 14, 2022 · 1695 views
    This topic created in 1518 days ago, the information mentioned may be changed or developed.

    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 。

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1031 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 18:30 · PVG 02:30 · LAX 11:30 · JFK 14:30
    ♥ Do have faith in what you're doing.