Troubleshooting
Problem
For situations where there is high or 100% CPU usage it is important to be able to determine which threads and functions are using that CPU time.
Resolving The Problem
Profiling the CPU usage on AIX can be achieved using the tprof utility, as carried out with the following command:
./tprof_ps.sh tprof_ps
which uses the following script:
#! /bin/ksh
TPROF_LOG=$1
mkdir $TPROF_LOG
cd $TPROF_LOG
tprof -skex sleep 60
ps avwwwg > ps-w-tprof.log
cd ..
[{"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Debugging Tools","Platform":[{"code":"PF002","label":"AIX"}],"Version":"5.0","Edition":"J2SE","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21222454