Skip to content

fix: raise eleventy heap cap from 2048 to 3072 MB - #409

Merged
oleeskild merged 1 commit into
mainfrom
fix/raise-heap-cap-3072
Aug 20, 2026
Merged

fix: raise eleventy heap cap from 2048 to 3072 MB#409
oleeskild merged 1 commit into
mainfrom
fix/raise-heap-cap-3072

Conversation

@oleeskild

@oleeskild oleeskild commented Aug 20, 2026

Copy link
Copy Markdown
Owner

Why

#397 lowered --max-old-space-size from 4096 to 2048, tuned on a 210-page garden. Large text-heavy gardens (~1,100+ notes, ~10 min builds) now die mid-build with a V8 allocation failure at ~2 GB heap, while a 4Gi build container (like vercel has) still has half its memory free. First hit: a hosted garden that had built fine on 4096.

Change

One line in package.json: --max-old-space-size=20483072.

3072 clears the gardens we've seen fail (heap peaked right at the 2 GB cap) and still leaves ~1 GB on a 4Gi container for sharp's native memory, which was #397's reason for lowering it.

#397 lowered --max-old-space-size from 4096 to 2048 based on a 210-page
garden. Large text-heavy gardens (~1100+ notes) exceed that: the build
dies with a V8 "allocation failure" at ~2 GB heap while the 4Gi build
container still has half its memory unused.

3072 gives those gardens room while still leaving ~1 GB on a 4Gi
container for sharp's native allocations, which was the reason #397
lowered it in the first place.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FuHUwv79QekUJwCMB4rpvh
@oleeskild
oleeskild merged commit 980955f into main Aug 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant