Reputation: 3246
In CloudWatch logs for AWS Lambda, there are lines like this:
REPORT RequestId: 8b4a32a4-7dc0-4342-a998-48b051d683e0 Duration: 182.29 ms Billed Duration: 200 ms Memory Size: 128 MB Max Memory Used: 35 MB
Is it safe to assume the Max Memory Used will always be logged in MB? I can't find anything to confirm either way, and any sort of dashboard seems to use structured data that is definitely in megabytes, but I doubt that information is scraped from logs.
Upvotes: 2
Views: 6009
Reputation: 269284
I just tried running an AWS Lambda function with maximum memory allocation and it returned:
Duration: 1.41 ms Billed Duration: 100 ms Memory Size: 3008 MB Max Memory Used: 59 MB Init Duration: 107.64 ms
While that isn't a test of the Max Memory
field, the Memory Size
field does show MB, so it would be fair to assume that Max Memory
would do the same even at large values.
Upvotes: 4