LoginSignup
1
0

More than 1 year has passed since last update.

pythonでゾンビプロセスを作る方法

Posted at

★はじめに
httpdサービスのプロセス監視をするためのスクリプトを作っている最中に
「個数だけだとゾンビプロセスが大量発生に気づけないからそれは除外したいなぁ」と
考えて、つくってみたけど「ゾンビプロセスがないと確かめようがないなぁ…」って
嘆いていたら、ありがたいことにコードを公開している方がいらしたのでありがたくお借りすることに。

★参考先
シンプルでホントに助かりました。
https://gist.github.com/nobonobo/4670476

★実行結果がコチラ
image.png

で、このときのpsの様子がコチラ。
image.png

★Ctrl-Cで止められる
超簡単!
image.png

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0