Skip to content

Alternatives for using django-debug-toolbar in Production #1043

Closed
@ademidun

Description

@ademidun

I am running into an issue on my production Django app in Heroku where I am getting a too many connections error from postgresql.

I'm very confused by this bug as everything works fine in development/localhost but after a few requests in production my 20 Heroku connections keep getting used up. Btw, I have Sentry already but I can't use that to diagnose sql connections. Also the issue started when I started using the new Django channels and running my Procfile with Daphne.

I planned on using django-debug-toolbar to debug this so I can diagnose how to fix this issue, but the documentation said its not recommended. 1) Why is it a bad idea? 2) What are some alternatives I can use to diagnose and fix this issue in production?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions