mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-06 02:49:57 +08:00
调整连接数
This commit is contained in:
@@ -145,8 +145,8 @@ redis:
|
||||
db: "${REDIS_DB:0}"
|
||||
password: "${REDIS_PASSWORD:sanbing}"
|
||||
pool_config:
|
||||
maxTotal: "${REDIS_POOL_CONFIG_MAX_TOTAL:256}"
|
||||
maxIdle: "${REDIS_POOL_CONFIG_MAX_IDLE:128}"
|
||||
maxTotal: "${REDIS_POOL_CONFIG_MAX_TOTAL:128}"
|
||||
maxIdle: "${REDIS_POOL_CONFIG_MAX_IDLE:64}"
|
||||
minIdle: "${REDIS_POOL_CONFIG_MIN_IDLE:16}"
|
||||
testOnBorrow: "${REDIS_POOL_CONFIG_TEST_ON_BORROW:false}"
|
||||
testOnReturn: "${REDIS_POOL_CONFIG_TEST_ON_RETURN:false}"
|
||||
|
||||
@@ -39,7 +39,7 @@ public final class DefaultInMemoryStorage implements InMemoryStorage {
|
||||
|
||||
@Override
|
||||
public boolean put(String topic, QueueMsg msg) {
|
||||
return storage.computeIfAbsent(topic, t -> new LinkedBlockingQueue<>(100000)).add(msg);
|
||||
return storage.computeIfAbsent(topic, t -> new LinkedBlockingQueue<>(10000)).add(msg);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user