What if my Lambada function required more memory than allocated?

0

Hi Team,

Can anyone please tell my what will happen if my lambda function need more memory for execute the function than allocated memory?

Exa: I have created a lambda function called x and allocated 128mb, but the code I have given in it(x) is required 243mb.

What will be output if I triggered the function?

Pradeep
已提问 2 年前309 查看次数
2 回答
1

In this cas aws lambda service will throw an OutOfMemory error

已回答 2 年前
0
已接受的回答

Your function will fail with an exception.

profile pictureAWS
专家
Uri
已回答 2 年前
profile picture
专家
已审核 1 个月前
  • Ok, then what is auto scale in lambda?

  • Auto scale the number of concurrent invocations. If you have one request, we will invoke it once. If you have 100 requests, we will invoke it 100 times. But the function itself should be configured to handle a request in all aspects: memory, ephemeral storage (/tmp) and duration.

  • Thanks for clarifications

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则