Limit db threads to 6 max threads
This commit is contained in:
parent
9fc58eae2b
commit
66bd00b352
@ -82,7 +82,7 @@ public class LLLocalKeyValueDatabase implements LLKeyValueDatabase {
|
|||||||
if (lowMemory) {
|
if (lowMemory) {
|
||||||
this.dbScheduler = lowMemorySupplier.get();
|
this.dbScheduler = lowMemorySupplier.get();
|
||||||
} else {
|
} else {
|
||||||
this.dbScheduler = Schedulers.newBoundedElastic(Schedulers.DEFAULT_BOUNDED_ELASTIC_SIZE,
|
this.dbScheduler = Schedulers.newBoundedElastic(6,
|
||||||
Schedulers.DEFAULT_BOUNDED_ELASTIC_QUEUESIZE,
|
Schedulers.DEFAULT_BOUNDED_ELASTIC_QUEUESIZE,
|
||||||
"db-" + name,
|
"db-" + name,
|
||||||
60,
|
60,
|
||||||
|
Loading…
Reference in New Issue
Block a user