Blog2020 ≫ Node.js heap out of memory

Hmm been getting an "out of memory" error when trying to build this site. I have 20,000 pages of "content" for the blog alone, which is why I split out the family tree and Folkestone Gerald ages ago. I had started ditching old content from this blog to, thinking maybe I'd split the site up by decades. It takes a while to rebuild when I publish new content 1 too, but if I do that it's harder to link posts to related posts. I know why not search for the error and see how to fix it?

It was an easy fix 2, just tell nodejs 3 to up it's default memory limit and now all 20,000 pages are back on the site.

Quite sunny, felt a bit fresh, 19° apparently.

  1. I have to keep calling it this, what else do I call it?
  2. Removed old stackoverflow.com/questions/38558989/node-js-heap-out-of-memory link here.
  3. Javascript (programming language of the web) on the server side.

🕵️

⬅️ :: ➡️

Paulʼs weblog - I live near Folkestone, Kent. Wednesday + dad to 2, I'm a full stack web engineer, + I do js / node, some ruby, other languages etc. My hobbies are pubbing, running, restaurants, home automation 🤖 and other diy jiggery-pokery, history, tree stuff, TV, squirrels, pirates ☠️, lego, + time travel.