Friday, April 20, 2007

Determine Why a Process is Hanging with truss

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


Anonymous said...

I feel the need to make a wildly inappropriate comment --

If the guys I dated were as well hung as some of the processes that run on my server, the world would be a better place. Well, for me at least.

Nice site =D

esofthub said...

I'm glad you like the site. :)

The Sarccastik Variable Why said...

okay i'm learning this truss is my truss command output, having problems in root directory; when you try to run ls with any attributes it just hangs:

cai01:/> truss -p 22721
lstat64("./mnt", 0xEFFFF5A0) (sleeping...)