Hi - Im running a single mongod in a docker container and every couple of weeks Im no longer available to connect to the server using python/mongo or compass all with the error:
com.mongodb.MongoQueryException: Query failed with error code 261 and error message ‘Unable to add session into the cache because the number of active sessions is too high’ on server *******:27017
Available sessions looks good:
rs0:PRIMARY> db.serverStatus().connections
{
"current" : 77,
"available" : 52351,
"totalCreated" : 335185,
"active" : 1
}
we are running :
MongoDB shell version v4.0.10
MongoDB server version: 4.2.8
How can I investigate this issue? Thanks
Duncan