@vue-storefront/middleware
Advanced tools
Comparing version 4.4.0-terminus.1 to 4.4.0-terminus.2
@@ -356,5 +356,3 @@ 'use strict'; | ||
return async () => { | ||
const memoryUtilization = | ||
// limit is multiplied by 1000 because k8s reports limit in kilobytes, while rss in bytes | ||
process.memoryUsage().rss / (parsedMemoryLimit * 1000); | ||
const memoryUtilization = process.memoryUsage().rss / parsedMemoryLimit; | ||
if (memoryUtilization > parsedMemoryLimitThreshold) { | ||
@@ -361,0 +359,0 @@ throw new Error(`Process memory usage over threshold - current is ${memoryUtilization} where ALOKAI_MEMORY_LIMIT_THRESHOLD is ${parsedMemoryLimitThreshold}`); |
@@ -343,5 +343,3 @@ import consola from 'consola'; | ||
return async () => { | ||
const memoryUtilization = | ||
// limit is multiplied by 1000 because k8s reports limit in kilobytes, while rss in bytes | ||
process.memoryUsage().rss / (parsedMemoryLimit * 1000); | ||
const memoryUtilization = process.memoryUsage().rss / parsedMemoryLimit; | ||
if (memoryUtilization > parsedMemoryLimitThreshold) { | ||
@@ -348,0 +346,0 @@ throw new Error(`Process memory usage over threshold - current is ${memoryUtilization} where ALOKAI_MEMORY_LIMIT_THRESHOLD is ${parsedMemoryLimitThreshold}`); |
{ | ||
"name": "@vue-storefront/middleware", | ||
"version": "4.4.0-terminus.1", | ||
"version": "4.4.0-terminus.2", | ||
"main": "lib/index.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "lib/index.es.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
88807
1539