0

I have a lambda function the process some data. When I invoke it it works fine the first time but when I try to invoke it again it timeouts. If I increased the amount of memory it works then timeouts if invoked it again.

I'm new to AWS, shouldn't the memory be cleared after the function is finished running on itself or should I do something to force it to be cleared out?

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
  • 1
    Well it depends on what your Lambda is doing but no, read https://stackoverflow.com/a/58693348/4800344 – Ermiya Eskandary Jan 12 '22 at 13:06
  • For a better assessment what happens to your AWS Lambda function, please post its code. – Dunedan Jan 12 '22 at 21:01
  • What does your code do? Is your function creating variables _outside_ of the function handler? You'll need to show some code or provide much more information for us to be able to assist you. – John Rotenstein Jan 12 '22 at 22:50

0 Answers0