question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Build Error] Out of memory when pages exceed 95

See original GitHub issue

Description

Everything works fine when pages are 95, but after adding one more simple page and run build I got this error.

image

I searched and tried this node --max_old_space_size=12000 ./node_modules/.bin/gatsby build. There is no error but the build time is very long (from 100s to around 600s with 1 more page) and still fail in Circle CI, so I don’t think that is a solution. I totally stuck and need help.

Steps to reproduce

Clone this project. https://github.com/siriwatknp/mui-treasury

// at master branch
yarn install
yarn build

Expected result

It should be able to build. If delete some page in /website/src/pages/styles/... and then run yarn build it will pass. 😱

Actual result

Build fail with the error above.

Environment

System: OS: macOS 10.15.1 CPU: (12) x64 Intel® Core™ i7-8750H CPU @ 2.20GHz Shell: 5.7.1 - /bin/zsh Binaries: Node: 10.16.3 - ~/.nvm/versions/node/v10.16.3/bin/node Yarn: 1.21.1 - /usr/local/bin/yarn npm: 6.9.0 - ~/.nvm/versions/node/v10.16.3/bin/npm Languages: Python: 2.7.16 - /usr/bin/python Browsers: Chrome: 80.0.3987.149 Firefox: 73.0.1 Safari: 13.0.3

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
siriwatknpcommented, Apr 10, 2020

I will close this issue for now.

0reactions
pvdzcommented, Apr 7, 2020

@siriwatknp eh, tbh, I actually don’t know the perf implications of that choice. All I see is createPage api, though. I’m not sure if that should affect the JS bundle, or why it would, but maybe.

I’ve seen issues like this before and it’s usually a configuration issue of some kind. Perhaps @wardpeet has a better insight.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Google Chrome's Out of Memory Error
How to Fix Google Chrome's Out of Memory Error · Close Your Unused Tabs in Chrome · Restart Your Chrome Browser · Force...
Read more >
"Fatal error: Out of memory..." occurring well below set PHP ...
The error appears after allocating no more than 41156608 bytes (~40M) in EVERY case, sometimes less. This is FAR below the memory limit,...
Read more >
Getting "out of memory" errors when around 65% used in ...
"out of memory" errors are almost always an error indicating you are out of virtual memory. Task Manager reports the usage of your...
Read more >
C3859: Virtual memory range for PCH exceeded - c++
I was running into this compiling a large code base on a local VM. Tried upping the page file size etc ...
Read more >
RayOutOfMemoryError: More than 95% of the memory is used
It looks like the memory issue is probably due to having too many Agent actors running in parallel. We're actively working on this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found