@nxtedition/lib 21.0.5 → 21.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app.js +5 -3
- package/package.json +1 -1
package/app.js
CHANGED
|
@@ -138,6 +138,7 @@ export function makeApp(appConfig, onTerminate) {
|
|
|
138
138
|
name: serviceName,
|
|
139
139
|
base: {
|
|
140
140
|
module: serviceModule,
|
|
141
|
+
wid: serviceWorkerId,
|
|
141
142
|
pid: process.pid,
|
|
142
143
|
tid: threadId,
|
|
143
144
|
hostname: os.hostname(),
|
|
@@ -468,17 +469,18 @@ export function makeApp(appConfig, onTerminate) {
|
|
|
468
469
|
rx.map(() => performance.eventLoopUtilization?.()),
|
|
469
470
|
rx.pairwise(),
|
|
470
471
|
rx.map(([elu1, elu2]) => {
|
|
472
|
+
const memory = process.memoryUsage()
|
|
473
|
+
|
|
471
474
|
let totalMemory
|
|
472
475
|
if (memoryUsageMap) {
|
|
473
476
|
totalMemory = {
|
|
474
|
-
rss:
|
|
477
|
+
rss: memory.rss,
|
|
475
478
|
heapTotal: 0,
|
|
476
479
|
heapUsed: 0,
|
|
477
480
|
external: 0,
|
|
478
481
|
arrayBuffers: 0,
|
|
479
482
|
}
|
|
480
483
|
for (const memoryUsage of memoryUsageMap.values()) {
|
|
481
|
-
totalMemory.rss += memoryUsage.rss
|
|
482
484
|
totalMemory.heapTotal += memoryUsage.heapTotal
|
|
483
485
|
totalMemory.heapUsed += memoryUsage.heapUsed
|
|
484
486
|
totalMemory.external += memoryUsage.external
|
|
@@ -491,7 +493,7 @@ export function makeApp(appConfig, onTerminate) {
|
|
|
491
493
|
couch: couch?.stats,
|
|
492
494
|
lag: toobusy?.lag(),
|
|
493
495
|
version: process.version,
|
|
494
|
-
memory
|
|
496
|
+
memory,
|
|
495
497
|
totalMemory,
|
|
496
498
|
utilization: performance.eventLoopUtilization?.(elu2, elu1),
|
|
497
499
|
heap: v8.getHeapStatistics(),
|