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
asked 2 years ago285 views
2 Answers
1

In this cas aws lambda service will throw an OutOfMemory error

answered 2 years ago
0
Accepted Answer

Your function will fail with an exception.

profile pictureAWS
EXPERT
Uri
answered 2 years ago
  • 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

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions