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