1 回答
- 最新
- 投票最多
- 评论最多
0
I am assuming you are using Amazon Linux 2 instances.
I've not seen top crash before and I can use htop etc without issue on a standard Amazon Linux 2 machine
- You can easily install htop via
sudo yum install htop
You may want to ask about the issues you are having with tooling on EC2 via the AWS Amazon Linux fourm: https://forums.aws.amazon.com/forum.jspa?forumID=228&start=0
Some other things you could try:
- You can use atop and sar to get very detailed metrics: https://aws.amazon.com/premiumsupport/knowledge-center/ec2-linux-configure-monitoring-tools/
- You can configure CloudWatch agent to automatically monitor some of these metrics: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Install-CloudWatch-Agent.html
- You could use use procstat to monitor individual processes https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Agent-procstat-process-metrics.html although I've never used in conjunction with a process launcher I don't own (ie GameLift) as its going to be hard to get the PIDs wired up.
- Your processes could though sample and report the metrics and report back via Cloudwatch agent or via some other pipe such as Kinesis. For example: https://gist.github.com/gbmhunter/00c57b55e2616cd8e1f21f77b79e59fc or
已回答 3 年前
相关内容
- AWS 官方已更新 2 年前