serverless-bundle icon indicating copy to clipboard operation
serverless-bundle copied to clipboard

Out of memory issues

Open jayair opened this issue 4 years ago • 2 comments

It seems like quite a few people are having out of memory errors with serverless-bundle. We're seeing many of these on Seed. It seems like a lot of it is for TS projects with functions being packaged individually and the type checkers that are spawned. But I think there are some JS ones as well.

I've started recommending serverless-esbuild. But I could use some help figuring out what the issue is, so we can fix it here.

jayair avatar Feb 27 '21 23:02 jayair

just a bump to say this is affecting us - will check out serverless-esbuild thank you @jayair

louisholley avatar Mar 08 '21 11:03 louisholley

@jayair The serverless-wepack plugin also had this issue and they fixed it by passing a concurrency number to limit the number of parallel packaging and type checking.

Since serverless-bundle uses serverless-webpack checkout this pull request that was made to the serverless-webpack repo. Maybe you could use their implementation to fix this issue.

ADrejta avatar Apr 06 '21 14:04 ADrejta