ゾンビプロセス - CI/CD用語集の定義
ゾンビプロセスは、すでに終了しているものの、親プロセスがまだその終了ステータスを読み取っていない(wait で回収していない)ために、プロセステーブルにエントリが残っているプロセスです。テーブルのスロット以外にはCPUもメモリも消費しません。
CIでは
PID 1が子プロセスを回収しない場合、ゾンビはcontainer内に蓄積し、長いテスト実行中にプロセステーブルを使い果たすことがあります。軽量なinit(Dockerの --init またはtini)を実行すると自動的に回収されます。
関連ガイド
Process - CI/CD Glossary DefinitionProcess: A process is a running instance of a program, with its own memory, file descriptors, and a unique pr…
Background Process - CI/CD Glossary DefinitionBackground Process: A background process is one started with a trailing `&` so the shell returns immediately…
SIGTERM - CI/CD Glossary DefinitionSIGTERM: SIGTERM (signal 15) is the polite request to a process to shut down. Unlike SIGKILL it can be caught…