shell script to log mysql cpu usage

Solutions on MaxInterview for shell script to log mysql cpu usage by the best coders in the world

showing results for - "shell script to log mysql cpu usage"
Valentina
16 Feb 2019
1# log a processed cpu usage every second
2while [ 1 ]
3do
4    #change 25029 to process id to monitor
5    top -b -n 2 -d 0.2 -p 25029 | tail -1 | awk '{print $9}'
6    sleep 1
7done
similar questions
queries leading to this page
shell script to log mysql cpu usage