dherault / dherault/serverless-offline

Lambda timeouts and memory consumption

Open
#1,652 4 comments 2 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
5.3k
Forks
811
Avg merge
2d 4h
Merged PRs (30d)
3

Description

Hey there!

I'm running a project using microsservices with `lerna` to start them. The problem is that many of services are returning the error `Lambda timeout`. The workaround was increase the timeout limit (from 15 to 60), but the other problem i'm running into is the huge memory consumption, causing memory leaks:

![image](https://user-images.githubusercontent.com/38844115/215098240-26ca7cf2-72fd-4d81-bc1d-d74ae02bdd85.png)

![image](https://user-images.githubusercontent.com/38844115/215098324-4c14e9df-5f21-4f0e-9ac8-95398bc11e97.png)

Serverless-offline version: 12.0.4
Obs: This error occurs in both Windows and MacOS.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported Lambda timeouts and high memory consumption with the described Lerna microservices setup and serverless-offline 12.0.4 on Windows or macOS. Compare behavior at the 15- and 60-second timeout settings and identify whether memory continues growing; done means the services avoid timeouts and excessive memory use.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, javascript
Domain
backend, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.