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
gefragt vor 2 Jahren309 Aufrufe
2 Antworten
1

In this cas aws lambda service will throw an OutOfMemory error

beantwortet vor 2 Jahren
0
Akzeptierte Antwort

Your function will fail with an exception.

profile pictureAWS
EXPERTE
Uri
beantwortet vor 2 Jahren
profile picture
EXPERTE
überprüft vor einem Monat
  • 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

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen