Set Max Idle Time
This commit is contained in:
parent
fe3239a1bc
commit
f3afc6b700
|
@ -36,6 +36,7 @@ public class MongoClientProvider extends AbstractScopedMap<MongoClient>{
|
|||
MongoClientOptions options = MongoClientOptions.builder().
|
||||
threadsAllowedToBlockForConnectionMultiplier(10).
|
||||
connectionsPerHost(20).
|
||||
maxConnectionIdleTime(10000).
|
||||
applicationName("geoportal-service").
|
||||
sslEnabled(true).
|
||||
build();
|
||||
|
|
Loading…
Reference in New Issue