-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@Sentry/vite-plugin OOM when run. #683
Comments
Hey @MWhite-22 thanks for reaching out.
Just to give you an overview: the plugin is handling some things under the hood to make sure releases and sourcemaps are set up correctly:
In your case since you have a high amount of js files the consumed memory is most likely due to sourcemap upload. We are working on some improvements to this but for the time being you would need to set |
Also, if there's any way to memory profile your build, it would be great for us to know what inside our plugins is eating your memory. We are using the plugin in a crap ton of places ourselves and have never run into an oom issue, hinting at the fact that it is setup dependent - so it would be great to get some sort of reproduction. None of the features in the plugin should take up this much memory, except for when a sourcemap is X gigabytes in size. tldr: we need repro |
Environment
Steps to Reproduce
I know there are already a few issues around this but the one with the most info is locked and I cant upload any memory profiles.
Context:
Scenario 1 (webpack w/ Sentry plugin):
Scenario 2 (Vite, no sentry plugin installed):
Scenario 3 (Vite, Sentry plugin installed but disabled):
Scenario 4 (Vite, Sentry plugin enabled):
max_old_space_size=8192
.We can live with the max old space bump for now, but I would like to understand what the plugin is doing that's causing an OOM issue. I was under the impression it just uploads to sentry. If there is a myriad of other "enhancements" on by default then I would like to A: know about them, and B: disable all of them to see if I can get the build to work anyways.
Vite Config:
Logs:
Expected Result
The only thing the plugin does is upload the sourcemaps.
Actual Result
Something in the execution of the plugin is causing an OOM error.
The text was updated successfully, but these errors were encountered: