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.

Stack size limit on generation of more then 10000 pages

See original GitHub issue

In our project there are about 6000 pages (2000 pages * 3 languages). It’s development state and production site will have about 20-25 languages (so, > 40000 pages)

For now, during develop google chrome returns error in dev console

Uncaught RangeError: Maximum call stack size exceeded

Firefox works well (because has bigger stack size limit)

And build state return error:

WebpackError: Maximum call stack size exceeded

For one language (~2000 pages) all work fine. For build tried to use options of nodejs:

–max-old-space-size=100000 --stack-size=65000

End system-wide:

ulimit -s 65000

But it did not help.

Spent some time for investigation and seems that will be spent much more. Has anybody experience of generation sites with huge amount of pages (more then 10000)? Are there any idea how to fix it fast?

As alternative of generation of such amount of static pages I see using SSR (most part of pages it’s almost the same pages with trading instruments information) But do not want to use this approach because in this case we will not be able to use pure S3 for hosting the site.

Will be grateful for any help

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
KyleAMathewscommented, Jul 27, 2018

V2 does indeed have much better support for large sites!

Our create-pages/markdown benchmarks can build a 10k site in less than a minute now after https://github.com/gatsbyjs/gatsby/pull/6226!

I’ll close this issue out actually as 10-20k page sites shouldn’t generally be a problem any longer. Please open new issues if any of you have trouble with larger sites!

0reactions
nkristoffersencommented, Jul 23, 2018

I’m looking to generate 10,000 - 20,000 pages in Gatsby. Is that possible? Will V2 have better support for large sites? Or should I reduce the scope of generated pages and dynamically render missing pages client side?

Loving Gatsby btw, I build several GatsbyJS sites per month. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

C/C++ maximum stack size of program on mainstream OSes
In Visual Studio the default stack size is 1 MB i think, so with a recursion depth of 10,000 each stack frame can...
Read more >
Stack size invisibility in C and the effects on "portability"
As long as you use less than 1 page per activation record though, most modern libc implementations behave safely under unbounded recursion as ......
Read more >
Control Stack Space Usage - MATLAB & Simulink - MathWorks
You can control the maximum stack size used by your compiler or hardware. A stack is a block of memory that stores local...
Read more >
ulimit - Set process limits - IBM
Set or display the stack size limit. The stack size limit is the maximum size of the stack for a process, in units...
Read more >
stack overflow - wingolog
And still, like C, Python and most dynamic languages still have a fixed stack size limit that is usually much smaller than the...
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