jina icon indicating copy to clipboard operation
jina copied to clipboard

After killing the process, it becomes a zombie process

Open iamfengdy opened this issue 1 year ago • 9 comments
trafficstars

  1. nohup jina flow --uses flow.yml --name bf7e2d0198df3388a73525a3f3c7f87f --workspace bf7e2d0198df3388a73525a3f3c7f87f >bf7e2d0198df3388a73525a3f3c7f87f/jina.log 2>&1 &
  2. ps aux|grep 'jina flow '|grep 'name bf7e2d0198df3388a73525a3f3c7f87f' |grep -v grep |awk '{print $2}'| xargs echo outputs are: 1719527 1719529 1721841
  3. kill -9 1719527 1719529 1721841
  4. processes(1719527 1719529 1721841) becomes zombie process

iamfengdy avatar Apr 28 '24 02:04 iamfengdy

can u share the logs observed?

JoanFM avatar Apr 28 '24 14:04 JoanFM

INFO executor/rep-0@49 start server bound to 0.0.0.0:54054 [04/29/24 09:34:55] ────────────────────────── 🎉 Flow is ready to serve! ────────────────────────── ╭────────────── 🔗 Endpoint ───────────────╮ │ ⛓ Protocol HTTP │ │ 🏠 Local 0.0.0.0:5000 │ │ 🔒 Private 192.168.2.89:5000 │ │ 🌍 Public xxx.xxx.xxx.xxx:5000 │ ╰──────────────────────────────────────────╯ ╭─────────── 💎 HTTP extension ────────────╮ │ 💬 Swagger UI 0.0.0.0:5000/docs │ │ 📚 Redoc 0.0.0.0:5000/redoc │ ╰──────────────────────────────────────────╯ Do you love open source? Help us improve Jina in just 1 minute and 30 seconds by taking our survey: https://10sw1tcpld4.typeform.com/jinasurveyfeb23?utm_source=jina (Set environment variable JINA_HIDE_SURVEY=1 to hide this message.)

iamfengdy avatar Apr 29 '24 01:04 iamfengdy

by the way. i run jina in docker container and the os version is "Linux 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 GNU/Linux"

iamfengdy avatar Apr 29 '24 01:04 iamfengdy

killing process by subprocess.run("kill -9 ") in python will occur zombie process; but by kill command in linux will not occur

iamfengdy avatar Apr 29 '24 03:04 iamfengdy

can u pass the JINA_LOG_LEVEL=DEBUG environmenr variable to see more log information?

JoanFM avatar Apr 29 '24 06:04 JoanFM

killing process by subprocess.run("kill -9 ") in python will occur zombie process; but by kill command in linux will not occur

I think this may be the reason.

JoanFM avatar Apr 29 '24 06:04 JoanFM

killing process by subprocess.run("kill -9 ") in python will occur zombie process; but by kill command in linux will not occur

I think this may be the reason.

whether using python or command , it will occur when running in a container, this may be the reason.

iamfengdy avatar May 06 '24 01:05 iamfengdy

If you're on an Apple Silicon mac, try setting JINA_MP_START_METHOD=spawn. fork was causing zombie processes/failing to process requests on my M1 macbook.

scottt732 avatar Jul 26 '24 16:07 scottt732

OK,i was on ubuntu ,but i will have a try,thanks。

发自我的 ifeng6p

在 2024年7月27日,00:19,Scott Holodak @.***> 写道:

 If you're on an Apple Silicon mac, try setting JINA_MP_START_METHOD=spawn. fork was causing zombie processes/failing to process requests on my M1 macbook.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.

iamfengdy avatar Jul 30 '24 03:07 iamfengdy