How to get performance stats of the invoked AWS lambda task?

时间:2016-08-31 12:33:51

标签: java amazon-web-services aws-sdk aws-lambda

I am submitting tasks (eventually this will be hundreds of thousands of tasks) to AWS lambda using InvokeRequest class, and I am interested in performance characteristics of the task: execution time, memory usage, etc.

Note that I will eventually want to compute various performance statistics and plots of the submitted tasks in costum code.

1 个答案:

答案 0 :(得分:3)

您可以在CloudWatch中获取执行时间(持续时间),错误计数,调用计数和Throttles指标。对于内存使用,我认为您必须以某种方式从CloudWatch Logs中获取内存。您可以先查看讨论AWS Lambda内存分析的this AWS forum thread