I am running a lambda container function. The lambda function is configured with 10240MB of memory. On execution of the lambda, my container is being killed with a SIGSEGV error, meaning it has run out of memory. However, the logs show that the max memory used by the lambda function was only 1473MB (well below the 10240MB lambda function memory).
Do containers have access to all of the memory the lambda function has access to by default?
For instance, with the docker run
command, one can specify memory and cpu limits:
docker run --memory 10240m container-name
However, there is no access to this run command using lambda.
Logs:
2023-05-17T15:28:15.643+01:00 error: ffmpeg was killed with signal SIGSEGV
EPORT RequestId: 41dfc700-a47b-41b5-9df5-4166a8829780 Duration: 47973.41 ms Billed Duration: 49156 ms Memory Size: 10240 MB Max Memory Used: 1473 MB Init Duration: 1181.64 ms