
我需要每分鐘(在近實時模式下)將 nmon 資訊儲存在臨時檔案中。
那麼最好的情況是:
1)每分鐘我打開一個 ssh shell,運行以下命令並將其匯出到外部儲存庫中
nmon -F filename -c 1 -s 15
在哪裡
parameter c -> Specifies the number snapshots that must be taken by the command
parameter s -> Specifies the interval in seconds between 2 consecutive recording snapshots
2)每隔 10 分鐘我打開一個 ssh shell,執行以下命令並將其匯出到外部儲存庫中
nmon -F filename -c 10 -s 60
為了減少資源消耗,您有何建議?
感謝您的協助