Loading

摘要: 需求 Linux下跑业务程序,希望对资源消耗进行监控。 代码 使用Shell脚本实现 #!/bin/bash # set program name cmd=my-app while true do top -bn1 -n 1 | grep $cmd | tail -1 | awk '{print $ 阅读全文
posted @ 2021-02-24 16:08 azureology 阅读(78) 评论(0) 推荐(0)