HIkari线程池调优

 
"dataSourceHikari" class="com.zaxxer.hikari.HikariDataSource" 
destroy-method="shutdown"> 

 

"jdbcUrl" value="jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8" /> 

"username" value="${db.username}" />

"password" value="${db.password}" />

 

"readOnly" value="false" />



"connectionTimeout" value="30000" />



"idleTimeout" value="600000" /> 

 
"maxLifetime" value="1800000" />



"maximumPoolSize" value="15" /> 

 

core_count:核数
effective_spindle_count is the number of disks in a RAID.就是磁盘列阵中的硬盘数

比如我的服务器16核一个盘那就是
(16*2)+1=33

转载于:https://www.cnblogs.com/daysn/p/10444658.html

你可能感兴趣的:(HIkari线程池调优)