Unix Monitoring
Contents
Using strace on Red Hat
The command strace can be used to dump a running process. This is useful for identifying what OS calls the process is performing.
- ps -ef |grep pmon
myid 110 11 0 19:03 pts/2 00:00:00 grep myproc
oracle 178 1 0 Dec11 ? 00:00:10 asm_pmon_+ASM
- strace -fte trace=read,write -p 178 –o /tmp/strace_dump.txt -p