Skip to content
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

Possible memory leak #18

Open
lucaippo opened this issue Oct 8, 2018 · 6 comments
Open

Possible memory leak #18

lucaippo opened this issue Oct 8, 2018 · 6 comments

Comments

@lucaippo
Copy link

lucaippo commented Oct 8, 2018

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.

@faxioman
Copy link

faxioman commented Oct 8, 2018

@gperrow it’s worth noting that this driver is linked from the official django documentation.
If this driver has memory leak and it’s in abandoned status I think it’s better to ask the django guys to remove sap sqlanywhere from the community supported dbs list.

@faxioman
Copy link

cc @gperrow-SAP

@gperrow-SAP
Copy link
Contributor

My apologies for the delay in responding and for the neglect of the Django driver. There's been some rearranging of teams here and this driver seems to have gotten lost in the shuffle. I will make sure these issues get addressed.

@lucaippo
Copy link
Author

Hi @gperrow-SAP, any news on this?

1 similar comment
@WaYdotNET
Copy link
Contributor

Hi @gperrow-SAP, any news on this?

@faxioman
Copy link

faxioman commented Feb 9, 2019

@lucaippo @WaYdotNET @gperrow-SAP
This is the ticket where I asked to remove SAP SQL Anywhere from the "3rd party database backend" page.
https://code.djangoproject.com/ticket/30169

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants