usage-plot.gp top.dat top. While true do top -p $PID -bMn 1 | egrep '^+' | awk -v now=$(date +%s) '' > top.dat done The nice command allows you to adjust the priority level of a process, which. unix time - memory with m/g suffix - CPU load in % In Linux, you can change the CPU priority of a process using the nice command. Run this script (perhaps via nohup) to capture the data: #!/bin/sh If you want to monitor the memory and CPU usage of a particular Linux process for a few minutes, perhaps during a performance test, you can capture the data with top and plot them with gnuplot. Keep reading to learn how.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |