You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi -- I'm having some problems with an 11ty codebase. Builds are painfully slow (~2 seconds per page), and I can't even build the (relatively small) site completely at all. The site is very simple. I would be very grateful for any pointers or suggestions to help work out what's going on and what I might do about it.
Below is a benchmark with a subset of my pages. Attempting to build with all of the pages (~220) uses all my available RAM, starts thrashing swap, and then crashes with
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
Edit: I can build the entire site -- [11ty] Copied 2 files / Wrote 256 files in 698.56 seconds (2728.8ms each, v2.0.1) -- by passing --max_old_space_size=16384 to the node process (--max_old_space_size=8192 isn't enough), but 11.5 minutes and ~13GiB of memory consumed seems a lot for ~250 mostly simple .md pages; the dev. experience is really painful, and it will presumably present problems for CI/CD when I get to that bit.
This is on a 6-core i1-10750H CPU, with 16GiB of RAM and 16GiB of swap. The codebase is at https://github.com/simonwiles/ach.org/ -- it's a work-in-progress port from a site that was developed in Gatsby.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi -- I'm having some problems with an 11ty codebase. Builds are painfully slow (~2 seconds per page), and I can't even build the (relatively small) site completely at all. The site is very simple. I would be very grateful for any pointers or suggestions to help work out what's going on and what I might do about it.
Below is a benchmark with a subset of my pages. Attempting to build with all of the pages (~220) uses all my available RAM, starts thrashing swap, and then crashes with
Edit: I can build the entire site --
[11ty] Copied 2 files / Wrote 256 files in 698.56 seconds (2728.8ms each, v2.0.1)
-- by passing--max_old_space_size=16384
to the node process (--max_old_space_size=8192
isn't enough), but 11.5 minutes and ~13GiB of memory consumed seems a lot for ~250 mostly simple.md
pages; the dev. experience is really painful, and it will presumably present problems for CI/CD when I get to that bit.This is on a 6-core i1-10750H CPU, with 16GiB of RAM and 16GiB of swap. The codebase is at https://github.com/simonwiles/ach.org/ -- it's a work-in-progress port from a site that was developed in Gatsby.
Beta Was this translation helpful? Give feedback.
All reactions