MYSYSAD.COM

Determine Why a Process is Hanging with truss

· Solaris & Sun · System & processes

The truss utility may help you determine why a particular process is hanging. The truss command executes the specified UNIX command, and then truss provides a data profile (trace) of the specified command's execution. It's a very useful troubleshooting tool. Here's an example below.

#truss -d unix_command