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 content1 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 fix2, just tell nodejs 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.

nodejs: Js (programming language of the internets) on the server side.

🕵️

⬅️ :: ➡️

Paul Clarke's weblog - I live in A small town. Married + dad to 2, I am a full-stack web developr, + I do js / Node, some ruby, python, php etc. I like pubbing, parkrun, restaurants, home-automation + other diy jiggery-pokery, history, genealogy, TV, squirrels, pirates, lego, and TIME TRAVEL.