1) while; do; done --Create a simple command / script to capture the series of performance statistics
while condition to execute a loop until it's false
do -- to start a loop
done --end loop
ex: if I like to capture the received and send packets via ifconfig, you can write a simple script as following:
while true; do ifconfig eth0 | egrep "RX packets|TX packets"; sleep 3; done
2) tee -- take the output and save it to a file.
mpstat -P All | tee /tmp/mpstat.out
3) script -- is a relatively simple command that it's used to save all the input and output generated into a text file.
script /tmp/ps.log
4) ldd -- can be used to display the libraries that a specific binary is relied on. It helps to trace down the location of a library function that an application is using.
ldd /usr/bin/vmstat
5) objdump --complex and powerful tool for analyzing binaries or libraries.
objdump –T $ORACLE_HOME/bin/oracle
6) watch --runs every second and display output on the screen. It's useful for live-monitoring by glancing at the screen for performance statistics changing.
watch -n 3 -d free
d: cummulative n: number of seconds to wait between updates
to be continued..
No comments:
Post a Comment