Build Failing in CI Due to Memory Issues (~14k MD files) – Works Locally #11745
Unanswered
TaushifAli1
asked this question in
Q&A
Replies: 1 comment
-
|
Hey 👋 It's impossible to help with this kind of issue without knowing more about your site and having access to its source. Set Why do you have 14k md files? Are they written manually or codegen? We have recently found out that codegen of large mdx documents can be a huge problem for performance. An OpenAPI plugin changed its strategy and became much faster. #11664 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
We’re running into memory issues when building our Docusaurus site in CI and would appreciate some guidance.
Context
-Node version: 22
-Docs size: ~14,000 markdown files
Problem
The build works fine locally, but it fails in GitHub Actions due to memory issues.
We are using our own runner with 32 GB RAM, so we were not expecting memory to be a bottleneck.
What We’ve Tried
node --max-old-space-size=16384Still failing. Given that the runner has 32 GB RAM, we suspect this might not be the real issue.
2.Added swap space in CI:
pierotofy/set-swap-spaceThis does allow the build to succeed.
However:
We did memory analysis, we are seeing ram is eaten up during docusaurus build (this is without swap space)
Beta Was this translation helpful? Give feedback.
All reactions