My django+ngnix application server goes down frequently without proper information. So I checked the logs and can see the process goes into defunct state.
3072 ? 00:18:41 uwsgi
4045 ? 01:00:56 uwsgi Defunct
So restarted the process and worked for now.
Anyone know the reason why the server goes down frequently, uwsgi dies? also is there any way to restart or recover the process if it goes into defunct state?
Thanks in Advance.
A <Defunct> process is dead. It's just hanging around until its parent process retrieves its exit status. There is nothing that can be done to it.
If you kill its parent, then it is re-parented to the init process (process #1) which will retrieve its status (and discard it), which will cause the defunct process to vanish from
ps