circleci test_static consumes OOM
See original GitHub issueCurrent behavior 😯
Regularly seeing test_static
circleci jobs fail because of OOM issues.
@mui/toolpad-app: [build:*next] Killed
@mui/toolpad-app: [build:*next] error Command failed with exit code 137.
@mui/toolpad-app: [build:*next] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@mui/toolpad-app: [build:*next] yarn run build:next exited with code 137
Insights confirmed an increase in max memory consumption since Sept 30
Might be caused by https://github.com/mui/mui-toolpad/pull/1043. I’m putting my money on the source map changes 🙂
We were already quite close to 100%, so if we can’t bring memory consumption down, scaling the instance may be in order.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
How to Handle Java OOM Errors - CircleCI
When a build uses too much memory, it's typically the fault of a child, and not the the parent, process. The child process...
Read more >Avoiding and Debugging Java Memory Errors - CircleCI
This pre-allocation can produce Out of Memory (OOM) errors, which are difficult to debug because the error messages lack detail. Usually you will...
Read more >OOM on gradle tests - Running Tests - CircleCI Discuss
Hi, I'm getting OOM (code 137) and not getting memory-usage.txt file.
Read more >Why Do My Tests Pass Locally but Fail on CircleCI?
If a process in your build container uses too much memory, Linux's OOM killer may end it. If you are interested in recording...
Read more >How To Record a Job's Memory Usage - CircleCI Support
Docker executor users can output the max memory consumed by a job by adding the ... This can help troubleshoot out-of-memory (OOM) errors....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The sentry plugin wraps the next.js config and alters it to so that our build generates sourcemaps in production and then it uploads them at the end of the build.
I think what we could do is:
productionBrowserSourceMaps
in the next.js config to make sure sourcemaps are generated in our build (sentry plugin should do it under the hood as well but let’s not rely on that).hiddenSourceMaps
tofalse
in the Sentry plugin to make sure our sources contain asourceMappingURL
directive. We want this so that we can debug in production, and so that the Sentry backend can locate them as welldryRun
totrue
to avoid Sentry from uploading the sourcemaps to their backend after the buildSentry should not be generating sourcemaps, it should only upload them, our build is suppose to generate sourcemaps, so that would mean disabling sourcemaps for our build