Upgraded to Meteor 2.8.2. This could fix memory leaks. See https://forums.meteor.com/t/meteor-v2-8-memory-leak-in-mongo-driver/59101/23 .

Added Mongo sessions count to Admin Panel / Version at bottom of page, see that it is not growing all the time.

Thanks to Meteor developers and xet7 !
This commit is contained in:
Lauri Ojansivu 2022-12-01 07:32:44 +02:00
parent bd03669d73
commit 49404203ab
8 changed files with 3588 additions and 2149 deletions

View file

@ -102,6 +102,11 @@ if (Meteor.isServer) {
mongoStorageEngine,
mongoOplogEnabled,
};
const client = MongoInternals.defaultRemoteCollectionDriver()?.mongo?.client;
const sessionsCount = client?.s?.activeSessions?.size;
statistics.session = {
sessionsCount: sessionsCount,
};
return statistics;
} else {
return false;