Welcome to the Ollama Docker Compose Setup! This project simplifies the deployment of Ollama using Docker Compose, making it easy to run Ollama with all its dependencies in a containerized environment
Describe the bug
we are runnig ollama with docker and container ollama-docker-app-1 in idletime is consuming 100% cpu without reason. no always, but occasionally. restart helps.
Describe the bug we are runnig ollama with docker and container ollama-docker-app-1 in idletime is consuming 100% cpu without reason. no always, but occasionally. restart helps.
the olllama docker stack is started using docker compose file https://github.com/valiantlynx/ollama-docker/blob/main/docker-compose-ollama-gpu.yaml
when i look into container ollama-docker-app-1 i see 2 python processes using 100% cpu - id 13 and id 43. here is pstree:
uvicorn(1)─┬─python(7) ├─python(8)─┬─{python}(17) │ ├─{python}(18) │ ├─{python}(20) │ └─{python}(21) ├─python(13)─┬─{python}(15) │ ├─{python}(16) │ ├─{python}(19) │ └─{python}(43) └─{uvicorn}(9)
here are cmdlines of bad processes:
root@ce73cb00b056:/code# cat /proc/13/cmdline /usr/local/bin/python/usr/local/lib/python3.11/site-packages/debugpy/adapter--for-server60015--host0.0.0.0--port5678--server-access-token69fbba1e901ac3b269a1f62151fd6306108d2e5cc5300616cd4574282cfd4a56root@ce73cb00b056:/code# cat /proc/43/cmdline /usr/local/bin/python/usr/local/lib/python3.11/site-packages/debugpy/adapter--for-server60015--host0.0.0.0--port5678--server-access-token69fbba1e901ac3b269a1f62151fd6306108d2e5cc5300616cd4574282
here is strace:
root@ce73cb00b056:/code# strace -p 13 strace: Process 13 attached futex(0x5604f9e11fc0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, FUTEX_BITSET_MATCH_ANY^Cstrace: Process 13 detached <detached ...>
and
root@ce73cb00b056:/code# strace -p 43 strace: Process 43 attached recvfrom(9, "", 1, 0, NULL, NULL) = 0 recvfrom(9, "", 1, 0, NULL, NULL) = 0 recvfrom(9, "", 1, 0, NULL, NULL) = 0 recvfrom(9, "", 1, 0, NULL, NULL) = 0 recvfrom(9, "", 1, 0, NULL, NULL) = 0 recvfrom(9, "", 1, 0, NULL, NULL) = 0 recvfrom(9, "", 1, 0, NULL, NULL) = 0 recvfrom(9, "", 1, 0, NULL, NULL) = 0 recvfrom(9, "", 1, 0, NULL, NULL) = 0 .... .... .... .... ...until break
any ideas?
To Reproduce Steps to reproduce the behavior:
wait a while, no action needed
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.