Browse Source

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 !

Lauri Ojansivu 2 years ago
parent
commit
49404203ab

+ 1 - 1
.meteor/packages

@@ -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

+ 1 - 1
.meteor/release

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

+ 1 - 1
.meteor/versions

@@ -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

+ 3 - 0
client/components/settings/informationBody.jade

@@ -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}}

+ 2 - 1
imports/i18n/data/en.i18n.json

@@ -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"
 }

File diff suppressed because it is too large
+ 548 - 238
package-lock.json


+ 3 - 0
package.json

@@ -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"

+ 5 - 0
server/statistics.js

@@ -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;

Some files were not shown because too many files changed in this diff