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

@ -21,7 +21,7 @@ cottz:publish-relations
dburles:collection-helpers
idmontie:migrations
easy:search
mongo@1.16.1
mongo@1.16.2
mquandalle:collection-mutations
# Account system

View file

@ -1 +1 @@
METEOR@2.8.1
METEOR@2.8.2

View file

@ -103,7 +103,7 @@ modern-browsers@0.1.9
modules@0.19.0
modules-runtime@0.13.1
momentjs:moment@2.29.3
mongo@1.16.1
mongo@1.16.2
mongo-decimal@0.1.3
mongo-dev-server@1.1.0
mongo-id@1.0.8

View file

@ -111,3 +111,6 @@ template(name='statistics')
tr
th {{_ 'Node_memory_usage_external'}}
td {{fileSize statistics.nodeMemoryUsage.external}}
tr
th {{_ 'Mongo_sessions_count'}}
td {{statistics.session.sessionsCount}}

View file

@ -1196,5 +1196,6 @@
"if-you-already-have-an-account": "If you already have an account",
"register": "Register",
"forgot-password": "Forgot password",
"minicardDetailsActionsPopup-title": "Card Details"
"minicardDetailsActionsPopup-title": "Card Details",
"Mongo_sessions_count": "Mongo sessions count"
}

5717
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -23,6 +23,7 @@
"dependencies": {
"@babel/core": "^7.15.5",
"@babel/runtime": "^7.15.4",
"@excalidraw/excalidraw": "^0.13.0",
"@mapbox/node-pre-gyp": "^1.0.8",
"@wekanteam/markdown-it-mermaid": "^0.6.0",
"ajv": "^6.12.6",
@ -58,6 +59,8 @@
"papaparse": "^5.3.1",
"pretty-ms": "^7.0.1",
"qs": "^6.10.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"simpl-schema": "^1.12.0",
"source-map-support": "^0.5.20",
"uuid": "^8.3.2"

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;