【问题标题】:More sessions created in oracle db在 oracle db 中创建了更多会话
【发布时间】:2019-06-09 12:05:08
【问题描述】:

从 Web 逻辑数据源,我创建了到 Oracle DB 的数据源连接,最多有 2 个连接池。我的项目有 45 个 Spring Boot Rest 服务,当我使用邮递员集合运行这些服务时,我可以看到在 oracle db 中使用我的系统名称创建了多个会话 ID。

我正在查看使用 Oracle Sql Developer 监控会话在 Oracle 中创建的会话。

我提到最大连接池为 2,为什么在 oracle 中使用我的系统名称创建了这么多会话

【问题讨论】:

  • 你的 Spring Boot 应用真的在使用数据源吗?
  • 是的,服务正在运行
  • 您已经将 Spring Boot 配置为使用数据源,或者 Spring Boot 是否可以创建自己的数据源?
  • 我已将 Spring Boot 应用程序配置为使用 weblogic 中可用的数据源。

标签: oracle oracle-sqldeveloper database-administration


【解决方案1】:

增加您的 maxPoolSize 并配置您的数据库会话的空闲和生存时间。这可能会对您有所帮助:

https://www.baeldung.com/spring-boot-hikari

【讨论】:

    猜你喜欢
    • 2019-03-03
    • 2015-05-04
    • 1970-01-01
    • 2015-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多