fix: Heap-Limit fuer den Build auf 4 GB -- 2 GB waren zu knapp
Der Wert 2048 aus v1.119.3 stammte aus der Zeit, als der Container 3 GB hatte. Er war zu niedrig gewaehlt: Der Build starb punktgenau bei 2045 MB, also an meiner eigenen Grenze. Gemessener Bedarf sind rund 2,6 GB, deshalb jetzt 4096. Der Container hat inzwischen 6 GB und damit genug Luft. v1.119.4 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
0628ec58ba
commit
bea9723a6f
@ -2,6 +2,13 @@
|
|||||||
|
|
||||||
All notable changes to this project are documented in this file.
|
All notable changes to this project are documented in this file.
|
||||||
|
|
||||||
|
## [1.119.4] - 2026-09-07
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Heap-Limit für den Build von 2048 auf 4096 MB angehoben. Der Wert aus v1.119.3 stammte
|
||||||
|
aus der Zeit, als der Container 3 GB hatte, und war schlicht zu niedrig: Der Build starb
|
||||||
|
punktgenau bei 2045 MB — also an der gesetzten Grenze. Gemessener Bedarf sind rund 2,6 GB.
|
||||||
|
|
||||||
## [1.119.3] - 2026-09-07
|
## [1.119.3] - 2026-09-07
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "my-weekly-todo-list",
|
"name": "my-weekly-todo-list",
|
||||||
"version": "1.119.3",
|
"version": "1.119.4",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "my-weekly-todo-list",
|
"name": "my-weekly-todo-list",
|
||||||
"version": "1.119.3",
|
"version": "1.119.4",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@auth/prisma-adapter": "^2.11.1",
|
"@auth/prisma-adapter": "^2.11.1",
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "my-weekly-todo-list",
|
"name": "my-weekly-todo-list",
|
||||||
"version": "1.119.3",
|
"version": "1.119.4",
|
||||||
"description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view",
|
"description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -95,11 +95,13 @@ main() {
|
|||||||
log "--- Regenerating Prisma client ---"
|
log "--- Regenerating Prisma client ---"
|
||||||
npx prisma generate
|
npx prisma generate
|
||||||
|
|
||||||
# Der Standard-Heap von Node richtet sich nach dem Arbeitsspeicher und landet auf
|
# Der Standard-Heap von Node richtet sich nach dem Arbeitsspeicher und lag auf diesem
|
||||||
# diesem Container bei rund 1,5 GB. Das reichte fuer `next build` nicht mehr, der Build
|
# Container bei rund 1,5 GB -- zu wenig fuer `next build`. Ein erster Versuch mit 2048
|
||||||
# starb mit "JavaScript heap out of memory". 2 GB lassen genug Luft fuer den Rest.
|
# scheiterte ebenfalls: der Build starb punktgenau bei 2045 MB. Gemessener Bedarf sind
|
||||||
|
# rund 2,6 GB, deshalb 4 GB. Der Container hat 6 GB, das laesst genug Luft fuer den
|
||||||
|
# laufenden PM2-Prozess.
|
||||||
log "--- Building application ---"
|
log "--- Building application ---"
|
||||||
NODE_OPTIONS="--max-old-space-size=2048" npm run build
|
NODE_OPTIONS="--max-old-space-size=4096" npm run build
|
||||||
|
|
||||||
# next.config.js sets output: 'standalone', and Next.js does NOT copy public/ or
|
# next.config.js sets output: 'standalone', and Next.js does NOT copy public/ or
|
||||||
# .next/static/ into .next/standalone — that is a documented manual step. Skipping it
|
# .next/static/ into .next/standalone — that is a documented manual step. Skipping it
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user