Versions
- nuxt: 2.14.1
- node: v14.7.0
Reproduction
I'm using nuxt generate with the memory benchmarking from #7412 (comment).
I've reduced the generate.concurrency down to 1 and I can see in the logs that after "Generating pages with full static mode" it start's going through my pages and the heap memory just keeps on growing.
After about 100 pages generated it runs out of heap memory FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory.
I'm using 3GB of heap memory with node --max_old_space_size=3072 ./node_modules/.bin/nuxt generate, sure I could increase this but with hundreds of pages it's not scalable.
This wasn't happening in the older version of nuxt 2.12.2
What is Expected?
I expect that generating pages would have roughly flat memory usage and not keep on growing with each generated page.
What is actually happening?
Memory usage keeps growing with each generated page.
Versions
Reproduction
I'm using
nuxt generatewith the memory benchmarking from #7412 (comment).I've reduced the generate.concurrency down to 1 and I can see in the logs that after "Generating pages with full static mode" it start's going through my pages and the heap memory just keeps on growing.
After about 100 pages generated it runs out of heap memory
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory.I'm using 3GB of heap memory with
node --max_old_space_size=3072 ./node_modules/.bin/nuxt generate, sure I could increase this but with hundreds of pages it's not scalable.This wasn't happening in the older version of nuxt 2.12.2
What is Expected?
I expect that generating pages would have roughly flat memory usage and not keep on growing with each generated page.
What is actually happening?
Memory usage keeps growing with each generated page.