Thursday, March 27, 2008

Identify Zombie Process in Solaris and Clean it :

bash-2.03$ ps -ef |grep defunct (The one marked in dark below is Parent Process)
zasshr 8134 24291 0 0:00 <defunct>
...........................
..It will show u a list.........................



bash-2.03$ ptree 24291
24291 /opt/VRTSvcs/bin/CitiEquity/CitiEquityAgent -type CitiEquit
8134 <defunct>
8205 <defunct>

...........................
..It will show u a list.........................


To Find total count for the defunct Parent Process :

bash-2.03$ ptree 24291 |wc -l

158

To clean the defunct Process:

$ preap 24291
24291: exited with status 0


No comments: