【问题标题】:Equivalent property for websphere purge policy in tomcat serverTomcat 服务器中 websphere 清除策略的等效属性
【发布时间】:2020-01-29 08:44:13
【问题描述】:

websphere 数据源设置中有一个名为“Purge policy”的属性,tomcat 中是否有可以使用的等效属性。

【问题讨论】:

  • 这个属性到底是做什么的?
  • 清除策略-用于清除陈旧的连接。

标签: java tomcat websphere


【解决方案1】:

据我从他们的connection pool documentation 得知,您可以使用 testOnReturn(或 testOnBorrow)来近似清除策略行为,但这会产生额外的开销,因为它将应用于每个连接请求,而不是响应观察到的陈旧连接。看起来他们给了你一个 validationInterval 属性来减少一些开销,但如果我的理解是正确的,它可能会导致延迟对已识别的陈旧连接的响应。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-01
    • 1970-01-01
    • 1970-01-01
    • 2018-11-23
    • 1970-01-01
    相关资源
    最近更新 更多