-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[Question] Troubleshooting idle connections in cvat_db #9147
Comments
Have you tried reproducing this on the latest version? We don't change the default Django settings, according to the documentation Django should close the connection after every request to the db: https://docs.djangoproject.com/en/4.2/ref/settings/#std-setting-CONN_MAX_AGE. That's why the behavior looks strange |
Hi @azhavoro, I have one instance running version 2.20.0, but the limitation I'm facing is that I'm the only one allowed to use it. Because of this, only a few connections (around four or five) are opened, making it difficult for me to determine their origin. When I label, a connection opens and then closes when I finish, which is the expected behaviour. However, some connections remain idle, and I don't understand why. I want to test it on the new version with the usual volume of labelers, but unfortunately, that's not possible right now😕. That's why I'm looking for ideas, because I'm unable to reproduce the issue by myself. Thank you very much for the quick response. Cheers, |
So what's is the update on this issue? And what's the real cause? @azhavoro |
Hi! Do you have message If yes, try to increase memory for cvat_db in docker compose
It worked for me. |
Hi,
I recently opened this issue due to server availability problems, when using CVAT version 2.11.2, caused by reaching the maximum number of connections (200, which I increased to 500). After successfully monitoring all the connected IPs, I proceeded to check active connections to the cvat_db, and noticed many idle connections, like the ones shown below:
Although I show just three connections here, there are 53 connections in total, and only one of them is active. Currently, one user is labeling, which is why there should be at least one active connection.
When I run the query above, the following result is printed::
Could you help me understand the origin of these idle connections? What could be causing them to stay in an idle state? Any guidance on how to address this issue would be greatly appreciated.
Thanks in advance. Cheers,
Manuel
The text was updated successfully, but these errors were encountered: