Hi! I have run into an issue where our Solaris application hangs and stops responding. There is nothing in the /var/adm logs about this process. I want to know a command or a script that can monitor a process continuously and generates a log file if a process encounters some errors/hangs. Please let me know if anybody is familiar with any such command/script.

Thanks!
Lucky