Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 2.06 KB

集成Druid.md

File metadata and controls

46 lines (35 loc) · 2.06 KB

集成 Druid

监控页面

spring:
  datasource:
    druid:
      stat-view-servlet:
        enabled: true
        url-pattern: /druid/*
        login-username: test
        login-password: test
        # allow: 127.0.0.1
        # deny:

访问 http://127.0.0.1:8097/druid/login.html

经测试,allow不配置默认只允许127.0.0.1,配置后只允许配置的ip

SpringBoot - 开启Druid监控统计功能教程(SQL监控、慢SQL记录、去广告) (hangge.com)

Druid监控页面的配置和使用_看秋天的你的博客-CSDN博客_druid监控页面

数据源页面

池中连接数 1 当前连接池中的数目
池中连接数峰值 1 连接池中数目的峰值
池中连接数峰值时间 2021-11-29 20:46:51 连接池数目峰值出现的时间
活跃连接数 0 当前连接池中活跃连接数
活跃连接数峰值 1 连接池中活跃连接数峰值
活跃连接数峰值时间 2021-11-29 20:46:52 活跃连接池峰值出现的时间
逻辑连接打开次数 25 产生的逻辑连接建立总数
逻辑连接关闭次数 25 产生的逻辑连接关闭总数
逻辑连接错误次数 0 产生的逻辑连接出错总数
逻辑连接回收重用次数 0 逻辑连接回收重用次数
物理连接打开次数 1 产生的物理连接建立总数
物理关闭数量 0 产生的物理关闭总数
物理连接错误次数 0 产生的物理连接失败总数

从逻辑连接打开/关闭和物理连接打开/关闭次数可以看出使用连接池的好处