IBM Support

Removing a Defunct process

Troubleshooting


Problem

The Unix command ps lists a process as and it cannot be killed. What is a defunct process and how to remove it?

Symptom


An operating system process has exited but the ps command output still includes the process id (PID) and lists "<defunct>" in the command name column.


Example:

This is output from the ps command run on Unixware that shows that process number 1537 is defunct:

$  ps -p1537
  PID  CLS PRI TTY      TIME COMD
 1537                   0:00 <defunct>

A process in this state is called a defunct process. A defunct process is also called a zombie process, or an orphaned process.

In some cases certain resources such as memory may continue to be associated with a defunct process and will not be available for use.

A defunct process cannot be killed.

[{"Product":{"code":"SSGU8G","label":"Informix Servers"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Not Applicable","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF025","label":"Platform Independent"},{"code":"PF008","label":"DYNIX\/ptx"},{"code":"PF010","label":"HP-UX"},{"code":"PF015","label":"IRIX"},{"code":"PF016","label":"Linux"},{"code":"PF026","label":"Reliant UNIX"},{"code":"PF027","label":"Solaris"}],"Version":"10.0;11.1;7.3;9.4;11.5","Edition":"Workgroup;Enterprise","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
03 June 2021

UID

swg21106945