question

Honest Lurker avatar image
Honest Lurker asked

Lambda Max Memory

Hi, Is anyone else having issue with their lambda functions reaching max memory? Memory Size: 128MB Max Memory Used: 10MB Process exited before completing request Thanks!
alexa skills kitdebugging
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Greg Crawford avatar image
Greg Crawford answered
Are you sure you are reaching max memory? The message you show does not indicate you have reached max memory but it does indicate that your lambda function exited before a request was completed. Make sure that you don't call context.done or context.succeed before your outstanding requests are completed. See: https://forums.developer.amazon.com/forums/message.jspa?messageID=17256 for a discussion regarding this.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.