Skip to content
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

Fix memory leak when skipRebuild is true #540

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

alexwillingham
Copy link
Contributor

This PR addresses #388

It is inspired by #388 (comment)

I run several different services locally in parallel with serverless-offline and serverless-esbuild. The largest one of those was chewing up 30+ GB of RAM just to build and run locally, and it didn't come down after the build was done. We kept having to bump our GitHub Actions to larger runners in order to be able to run our integration tests chiefly because of this memory leak.

We have been using this fork for a month; The memory usage is far less and there are no apparent issues. By using the fork, we've cut our GitHub Action spend in half.

@alexwillingham
Copy link
Contributor Author

Notably, I took the approach of fixing this only for the case where skipRebuild is true because that seemed more easily achievable. The same memory leak may exist for the case where skipRebuild is false and could potentially be addressed later.

@alexwillingham
Copy link
Contributor Author

Heyo, just let me know if anything is needed on my part to get an approval here. Happy to help.

@floydspace
Copy link
Owner

looks safe to merge, sorry for ignoring it for so long time

@floydspace floydspace merged commit 4a66070 into floydspace:master Oct 29, 2024
Copy link

🎉 This PR is included in version 1.54.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants