Script I use to isolate MySQL Performance Problems
Scripts I Use to Isolate MySQL
Performance Problems
#!/bin/sh
#./run_iostat.sh > REPORT.doc &
x=1
while [ $x -le 60 ]
do
echo "START RUN TIME"
date
/usr/bin/iostat -d 2 6
date
x=$(( $x + 1 ))
date
echo "END RUN TIME"
sleep 60
done
#!/bin/sh
#./run_mysqlreport_sleep60.sh > REPORT.doc &
x=1
while [ $x -le 60 ]
do
echo "START TIME"
date
mysqlreport –user USER --password PASSWD --host HOST --port 3306
x=$(( $x + 1 ))
echo "END DATE"
sleep 60
done
#!/bin/sh
#./run_iostat.sh > VMSTAT_REPORT.doc &
x=1
while [ $x -le 60 ]
do
echo "START TIME"
date
/usr/bin/vmstat
/usr/bin/vmstat -d
x=$(( $x + 1 ))
echo "END DATE"
date
sleep 60
done
#./run_iostat.sh > REPORT.doc &
x=1
while [ $x -le 60 ]
do
echo "START RUN TIME"
date
/usr/bin/iostat -d 2 6
date
x=$(( $x + 1 ))
date
echo "END RUN TIME"
sleep 60
done
#!/bin/sh
#./run_mysqlreport_sleep60.sh > REPORT.doc &
x=1
while [ $x -le 60 ]
do
echo "START TIME"
date
mysqlreport –user USER --password PASSWD --host HOST --port 3306
x=$(( $x + 1 ))
echo "END DATE"
sleep 60
done
#!/bin/sh
#./run_iostat.sh > VMSTAT_REPORT.doc &
x=1
while [ $x -le 60 ]
do
echo "START TIME"
date
/usr/bin/vmstat
/usr/bin/vmstat -d
x=$(( $x + 1 ))
echo "END DATE"
date
sleep 60
done
Comments
Post a Comment