← back to Thesetdecorator
fix(pm2): raise thesetdecorator max_memory_restart 1G->2G to stop boot-cache restart loop
d2e84d0a3ac884519519e41bbdb3adb65e78af4a · 2026-05-29 22:27:40 -0700 · SteveStudio2
Boot warms a 247K Met cache + 30K owned photos -> RSS ~1.1GB, which tripped the
1G max_memory_restart cap the instant caches loaded: graceful restart (exit 0),
reload, over cap again. 1257 restarts + stderr spam counted as CNCP failures.
2G gives headroom while still catching a real leak.
Files touched
Diff
commit d2e84d0a3ac884519519e41bbdb3adb65e78af4a
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date: Fri May 29 22:27:40 2026 -0700
fix(pm2): raise thesetdecorator max_memory_restart 1G->2G to stop boot-cache restart loop
Boot warms a 247K Met cache + 30K owned photos -> RSS ~1.1GB, which tripped the
1G max_memory_restart cap the instant caches loaded: graceful restart (exit 0),
reload, over cap again. 1257 restarts + stderr spam counted as CNCP failures.
2G gives headroom while still catching a real leak.
---
ecosystem.config.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/ecosystem.config.js b/ecosystem.config.js
index 2b3fd70..cd1f059 100644
--- a/ecosystem.config.js
+++ b/ecosystem.config.js
@@ -4,7 +4,12 @@ module.exports = {
script: 'server.js',
cwd: __dirname,
env: { NODE_ENV: 'production', PORT: 9716 },
- max_memory_restart: '1G',
+ // The server warms a 247K-work Met cache + 30K owned photos into memory at
+ // boot, which lands RSS at ~1.1GB. A 1G cap tripped pm2 max_memory_restart
+ // the instant caches finished loading -> graceful restart (exit 0) -> reload
+ // -> over cap again: 1257 restarts. 2G gives real headroom while still
+ // catching an actual leak.
+ max_memory_restart: '2G',
autorestart: true,
watch: false,
}],
← d6aa8df card grid: universal hover-preview — stamp --card-bg on card
·
back to Thesetdecorator
·
fix: block .original.png backup leaks from express.static + 9cc7440 →