jina-ai / serve

☁️ Build multimodal AI applications with cloud-native stack
https://jina.ai/serve
Apache License 2.0
21.12k stars 2.22k forks source link

After killing the process, it becomes a zombie process #6166

Open iamfengdy opened 6 months ago

iamfengdy commented 6 months ago
  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
JoanFM commented 6 months ago

can u share the logs observed?

iamfengdy commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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

JoanFM commented 6 months ago

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

JoanFM commented 6 months ago

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.

iamfengdy commented 6 months ago

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.

scottt732 commented 3 months ago

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.

iamfengdy commented 3 months ago

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.

jina-bot commented 1 week ago

@jina-ai/product This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days