简体   繁体   English

如何获取调用的AWS lambda任务的性能统计信息?

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

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. 我使用InvokeRequest向AWS lambda提交任务(最终将成为数十万个任务),我对任务的性能特征感兴趣:执行时间,内存使用等。

Note that I will eventually want to compute various performance statistics and plots of the submitted tasks in costum code. 请注意,我最终希望在costum代码中计算各种性能统计信息和提交任务的图表。

You can get execution time (Duration), Error count, Invocation count and Throttles metrics in CloudWatch. 您可以在CloudWatch中获取执行时间(持续时间),错误计数,调用计数和Throttles指标。 For memory usage I think you would have to pull that from CloudWatch Logs somehow. 对于内存使用,我认为您必须以某种方式从CloudWatch Logs中获取内存。 You might start by looking at this AWS forum thread which discusses AWS Lambda memory profiling. 您可以先看一下讨论AWS Lambda内存分析的AWS论坛帖子

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM