Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iamfengdy opened this issue Apr 28, 2024 · 7 comments
Open

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

iamfengdy opened this issue Apr 28, 2024 · 7 comments

Comments

@iamfengdy
Copy link

  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
Copy link
Member

JoanFM commented Apr 28, 2024

can u share the logs observed?

@iamfengdy
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

@JoanFM
Copy link
Member

JoanFM commented Apr 29, 2024

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

@JoanFM
Copy link
Member

JoanFM commented Apr 29, 2024

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants