Redisson Unable to init enough connections amount Only 20 of 24 were initialized
redisson
Redisson - Easy Redis Java client with features of In-Memory Data Grid. Sync/Async/RxJava/Reactive API. Over 50 Redis based Java objects and services: Set, Multimap, SortedSet, Map, List, Queue, Deque, Semaphore, Lock, AtomicLong, Map Reduce, Bloom filter, Spring Cache, Tomcat, Scheduler, JCache API, Hibernate, RPC, local cache ...
项目地址:https://gitcode.com/gh_mirrors/re/redisson
免费下载资源
·
1.设置connectionMinimumIdleSize(最小空闲Redis连接量),有的版本默认是32有的是24
2.redis超时事件加大
3.如果设置后还是有问题,检查版本,如果是redisson3.16.5,升级到3.16.8版本即可
RedissonClient redisson() throws Exception {
Config config = new Config();
config.useSingleServer().setAddress("redis://"+redisProperties.getHost())
.setPassword(redisProperties.getPassword())
.setTimeout(redisProperties.getTimeout())
//在这里设置,可以放入yml里映射到对象上去都,也可先直接写死一个数,根据业务使用情况设置要有多少个长连接
.setConnectionMinimumIdleSize(redisProperties.getConnectionMinimumIdleSize())
.setConnectionPoolSize(redisProperties.getConnectionPoolSize());
return Redisson.create(config);
}
GitHub 加速计划 / re / redisson
2
3
下载
Redisson - Easy Redis Java client with features of In-Memory Data Grid. Sync/Async/RxJava/Reactive API. Over 50 Redis based Java objects and services: Set, Multimap, SortedSet, Map, List, Queue, Deque, Semaphore, Lock, AtomicLong, Map Reduce, Bloom filter, Spring Cache, Tomcat, Scheduler, JCache API, Hibernate, RPC, local cache ...
最近提交(Master分支:3 个月前 )
cb052211 - 2 天前
20f27532 - 2 天前
更多推荐
已为社区贡献2条内容
所有评论(0)