I am less certain this is the problem now.   It may simply be that my
project is one of the larger on the server.   I did a quick audit, and
although they are new to django, they either used connection.cursor() as a
context manager, or called close explicitly.

I will try to develop a middleware around pympler, tracemalloc, or objgraph.

On Tue, Nov 6, 2018 at 6:23 PM Jason <[email protected]> wrote:

> oh boy...  Good luck.
>
> you can use connection.cursor() as a context manager, which will clean up
> connections after it exits.  You could grep the project for
> connection.cursor and add the context manager.
>
>
> how did none of the devs know to clean up after themselves, either with a
> context manager or try-finally?
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/TZ682yh2QfE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/0b436954-3e31-4dd7-b1ae-2bf75d72f472%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/0b436954-3e31-4dd7-b1ae-2bf75d72f472%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFzonYbp7uaBuqtRuEt5y691Gzs0%2BbAJ5HkMYQkzFsRkgCPMNg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to