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?