
具有高 CPU 的实例上的命令,例如获取 Java 线程转储、检查正在运行的进程以及上传到 S3
答案1
您可以使用 Cloudwatch 监控 CPU,并在达到特定阈值时通过 SSM 运行命令
按照此文档进行设置: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EC2_Run_Command.html
具有高 CPU 的实例上的命令,例如获取 Java 线程转储、检查正在运行的进程以及上传到 S3
您可以使用 Cloudwatch 监控 CPU,并在达到特定阈值时通过 SSM 运行命令
按照此文档进行设置: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EC2_Run_Command.html