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

pydevd.py is taking 100% CPU in docker #1670

Open
musikele opened this issue Sep 16, 2024 · 1 comment
Open

pydevd.py is taking 100% CPU in docker #1670

musikele opened this issue Sep 16, 2024 · 1 comment
Assignees
Labels
needs repro Issue has not been reproduced yet

Comments

@musikele
Copy link

Environment data

  • debugpy version: 1.8.5
  • OS and version: host: macOS 14.6.1, Macbook M2. Docker image: python:3.8-slim-bookworm, Docker version: v4.34.2
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.8.20
  • Using VS Code or Visual Studio: 1.93.0

Actual behavior

I start my Django docker image with python 3.8 with this command:

python -m debugpy --listen 0.0.0.0:8080 manage.py runserver 0.0.0.0:8888

After starting, these processes take 100% of cpu time:

immagine

If you can't read

/usr/local/bin/python /usr/local/lib/python3.8/site-packages/debugpy/_vendored/pydevd/pydevd.py --port 50313 --ppid 1 --client 127.0.0.1 --access-token a8d0020dc0e7cb1780cfec911cb8b8cd5a170796475a13f7d7ca4bfa0368b886 --debug-mode debugpy-dap --preimport /usr/local/lib/python3.8/site-packages;debugpy._vendored.force_pydevd --multiprocess --skip-notify-stdin --json-dap-http --file manage.py runserver 0.0.0.0:8888

Expected behavior

I'd like to debug normally with no process taking 100% of CPUs

Steps to reproduce:

Unfortunately no colleague is getting the same behaviour so I'd like some help to understand if this is my fault or debugpy fault.

I can provide you with logs and everything.

Thanks for the amazing work btw, For some weeks it was working flawlessly, and the issue is happening only on one docker image, not all of them.

@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Sep 16, 2024
@rchiodo
Copy link
Contributor

rchiodo commented Sep 18, 2024

Is there a reason you're using 3.8? Might work better with 3.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Issue has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

3 participants