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.

circleci test_static consumes OOM

See original GitHub issue

Current behavior 😯

Regularly seeing test_static circleci jobs fail because of OOM issues.

example: https://app.circleci.com/pipelines/github/mui/mui-toolpad/3578/workflows/b14c82c8-b004-45c1-b1ca-5a30412b6154/jobs/13481

@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

Screenshot 2022-10-06 at 10 07 03

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:closed
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Janpotcommented, Oct 11, 2022

Sentry 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

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:

  • set 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).
  • set hiddenSourceMaps to false in the Sentry plugin to make sure our sources contain a sourceMappingURL directive. We want this so that we can debug in production, and so that the Sentry backend can locate them as well
  • set dryRun to true to avoid Sentry from uploading the sourcemaps to their backend after the build
0reactions
bytasvcommented, Oct 10, 2022

Sentry 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

Read more comments on GitHub >

github_iconTop 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 >

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