Fix OOM : heap 4 GB + LRU plafonne par taille (entry 300 MB, search 100 MB)

This commit is contained in:
unfr
2026-06-01 11:14:59 +02:00
parent 92005a9cbe
commit e7017bd3b5
2 changed files with 26 additions and 4 deletions

View File

@@ -8,8 +8,8 @@
"node": ">=20"
},
"scripts": {
"start": "node --env-file-if-exists=.env server.js",
"cron": "node --env-file-if-exists=.env cron/runAll.js",
"start": "node --max-old-space-size=4096 --env-file-if-exists=.env server.js",
"cron": "node --max-old-space-size=4096 --env-file-if-exists=.env cron/runAll.js",
"cron:imdb": "node --env-file-if-exists=.env cron/imdbRatings.js",
"cron:tmdb": "node --env-file-if-exists=.env cron/tmdbSync.js",
"cron:justwatch": "node --env-file-if-exists=.env cron/justwatchSync.js",