2022年11月4日

Linux

摘要: 统计连接数:netstat -na|grep xxx.xxx.xxx.xxx:2181|wc -l10 阅读全文

posted @ 2022-11-04 08:24 webjlwang 阅读(22) 评论(0) 推荐(0)

SpringBoot2默认数据源Hikari

摘要: https://github.com/brettwooldridge/HikariCP JMH Benchmarks Microbenchmarks were created to isolate and measure the overhead of pools using the JMH mic 阅读全文

posted @ 2022-11-04 07:53 webjlwang 阅读(98) 评论(0) 推荐(0)

SpringBoot 数据源测试

摘要: 如下代码,数据源也可以注入,这样可以拿到DataSource,可以直接获取Connection,然后可以直接进行jdbc的处理: import com.alibaba.druid.pool.DruidDataSource; import org.junit.Test; import org.juni 阅读全文

posted @ 2022-11-04 07:42 webjlwang 阅读(143) 评论(0) 推荐(0)

springboot如何正确使用tomcat连接池

摘要: 【 这篇文章应该是springboot2.0以下的,springboot2.0以上默认数据源为Hikari,配置参数应为 spring.datasource.hikari.maximum-pool-size=50spring.datasource.hikari.minimum-idle=2 如果使用 阅读全文

posted @ 2022-11-04 07:32 webjlwang 阅读(830) 评论(0) 推荐(0)

导航