I am executing a lambda Nodejs function that has following configuration:
1) Max Memory : 512 Mb
2) Time out : 20 seconds
Memory consumption for a single execution: 100 Mb
It takes around 100 Mb to execute a single function.
What I noticed:
When the Lambda function is executed multiple times, the memory consumed keeps on increasing from 100 Mb to 128 Mb to 155Mb and so on ...
When it reaches the Max Memory (512 Mb), I get the following error:
Process exited before completing request
When tried after few minutes, the memory is cleaned up and it again sarts from 100 Mb
Is there any way to clean up the used memory in Lambda function? If not, is there any other way to tackle this problem?
via Abhinav
No comments:
Post a Comment