From 18799394e9adbad021fdbf9884e7aeb148e6c6db Mon Sep 17 00:00:00 2001 From: ThrRip Date: Tue, 12 Sep 2023 16:49:25 +0800 Subject: [PATCH] home: Restart the process when consuming 150M or more memory --- packages/home/ecosystem.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/home/ecosystem.config.js b/packages/home/ecosystem.config.js index c3f235a..7d3121d 100644 --- a/packages/home/ecosystem.config.js +++ b/packages/home/ecosystem.config.js @@ -2,10 +2,11 @@ module.exports = { apps: [ { name: 'mzg.fan-home', + script: './.output/server/index.mjs', port: 22320, exec_mode: 'cluster', instances: 'max', - script: './.output/server/index.mjs', + max_memory_restart: '150M', env: { 'NITRO_PORT': 22320 }