Skip to content

Possible memory leakΒ #18

@lucaippo

Description

@lucaippo

Hi,
we noticed a memory leak on some of our applications using sqlany-django.
After some research we found that the number of instances of sqlanydb.Root was steadily increasing at each request.
sqlanydb.Root has indeed his desctructor registered within atexit (this should prevent correct garbage-collection), but sqlanydb only uses it "class-level cached" inside Connection, while sqlany-django instantiates it directly.
Are you aware of this behaviour or am I missing something?

The problem can be reproduced using latest version of sqlany-django (1.13) and Django 1.8, and repeatedly calling a view that uses sqlany_django database backend.
Either using django.db.models.Model or django.db.connection to interact with Sybase will do: memory used by the Django server process should increase by some Kbs per request, going up to several hundreds Mbs.

While we are at it, do you still actively support this project? It seems that latest issues and PRs are not getting much attention, and latest Django version supported is 1.8, which support ended April 1 2018.

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