Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

180
Views
Django Memory Issues

My app has been having some serious memory issues. I am running Python 3.6, Django 1.10, running memchached on Heroku. Database contains about 1,000,000 rows of data.

In an attempt to get app to better perform I have change most query's related and prefetch related. None of this seemed to help so I have scaled up the Dyno's in an attempt to wrangle the memory issues but no matter how many I run I am still getting memory issues. There is really no load on the Dyno's themselves. Just straight memory issues.

The memory will shoot up to 768 mb and will not release this memory till I restart the dynos or app itself.

I am looking for any suggestions into improving the memory issues. I have thought of running garbage collection at some point to lower the memory but I have never actually used this in django. If anyone has experience with that will be helpful. Other than that I am pretty much mind blown where the memory leaks can be.

Thanks in advance.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!