How to find the process which is caused system hung state?

when system is hung state due to swap, we will reboot it through ILO.

i want to know which process caused system hung.

Hi Naveen,
I am not very familiar with swap but I think top or topas command's will give you the process which is taking most of the CPU