Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 653859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:25:46+00:00 2026-05-13T22:25:46+00:00

I moved my first Django project from DjangoEurope to Webfaction, and that started an

  • 0

I moved my first Django project from DjangoEurope to Webfaction, and that started an issue looking like a memory leak. With every single request memory usage of the server process goes up about 500kb. It never goes down. This goes on until Webfaction kills it for using too much memory.

I can clearly see this when I refresh the Django’s admin interface in my browser (although this happens with every single page, not only with admin interface – I though admin interface would be a nice test case, because there is no my code directly there). With every browser reload the memory usage goes up couple hundreds kilobytes.

I test the memory using a command suggested by Webfaction:

ps -u publica -o rss,etime,pid,command

More about my setup:

  • Django 1.1 (stable)
  • Default Webfaction Django setup using Apache and mod_wsgi
  • DEBUG set to False
  • MySQLdb 1.2.2 from Webfaction, but after hearing it had some problems I tried version 1.2.3c. Didn’t help.

Edit: I created an empty Django project – default Django configuration plus django.contrib.admin and fresh empty database (tried both with mysql and postgresql). I started reloading Django admin in my browser and watched memory usage. At first I saw the problem occurring – memory usage grew after every reload. But then it stabilized and stopped growing. That’s consistant with how my original project behaved on Django Europe. Unfortunately on Webfaction it never seems to stabilize (or at least not within limits of memory available to my account). Any advice?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T22:25:46+00:00Added an answer on May 13, 2026 at 10:25 pm

    I’m afraid I haven’t got any definite answers. Graham Dumpleton’s tips were most helpfull, but unfortunately he didn’t make an answer (just comments), so there is no way to accept his response.

    Although I still haven’t fully resolved the issue, here are some basic tips for other people having similar problems:

    • Read Webfaction’s documentation:
      • Reducing Memory Usage in general
      • Reducing mod_wsgi Memory Consumption
      • Reducing Django Memory Consumption
    • Make sure the DEBUG setting is set to False
    • Don’t use mod_python, use mod_wsgi
    • Make sure you use the most recent version od mod_wsgi (Webfaction tends to install older versions)
    • Don’t use Django to serve static content
    • Try running mod_wsgi in a daemon mode (Webfaction installs it in embedded mode by default) [thanks Graham Dumpleton for the tip]
    • If you run in embeded mode, you can specify “inactivity-timeout=[seconds]” option. It will restart the process after [seconds] of inactivity, helping with increased memory usage. Read this forum post for detailed instructions.
    • This script will help you monitor your memory usage easier, and more precisely [thanks ClaudioA for the tip]
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I first moved from c to Java I thought that I've finished will
I am Using TabGroupActivity for my project. In first tab, i moved from Activity
First, I am using Wordpress for this project but I don't think this issue
I'm deploying my first ever Django project and I get the feeling I'm very
When Joomla first sprung up and I moved over from Mambo I remember finding
I was originally using SQLCE first starting with LINQ to SQL and then moved
Please take a look at this screenshot first: I would like to move the
Moved a bunch of databases from sql server 2000 to 2008. One of the
I moved a site from WebAPI Beta to WebAPI RC, and am now getting
I'm creating templates for a Django project, and I need to create a three

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.