Git Product home page Git Product logo

Comments (7)

andrewgodwin avatar andrewgodwin commented on May 21, 2024

Memory usage of a worker is mostly dominated by Django and the app itself, though 500MB is quite a lot. Some questions:

  • What version of Channels, Daphne, Django and Python are you using?
  • Does the same thing happen with a normal WSGI process with, say, gunicorn with similar code?
  • What sort of throughput are the workers getting?
  • What channel layer are you using?

from daphne.

devenbhooshan avatar devenbhooshan commented on May 21, 2024
  • What version of Channels, Daphne, Django and Python are you using?
    channels==0.14.0
    daphne==0.12.1
    Django==1.9.5
    Python : 2.7.1
  • Does the same thing happen with a normal WSGI process with, say, gunicorn with similar code?
    Couldn't say for sure. I will try to reproduce the same load with gunicorn and will let you know
  • What sort of throughput are the workers getting?
    throughput was around 200request per minute but I can assure you it was not that much.
  • What channel layer are you using?
    Redis.

from daphne.

andrewgodwin avatar andrewgodwin commented on May 21, 2024

You're on old versions of channels and daphne; I'd at least try upgrading them first as some memory leaks were fixed a while ago.

from daphne.

devenbhooshan avatar devenbhooshan commented on May 21, 2024

from daphne.

andrewgodwin avatar andrewgodwin commented on May 21, 2024

I agree the footprint is too high, I want to make sure we can isolate it to the most recent release of channels and that it's not there when you run Django in normal WSGI mode, otherwise it's not a problem I can solve!

from daphne.

andrewgodwin avatar andrewgodwin commented on May 21, 2024

Closing due to lack of response.

from daphne.

UbuntuEvangelist avatar UbuntuEvangelist commented on May 21, 2024

Deploying Python Applications with Gunicorn fix this problem for me-

pip install gunicorn
pip freeze requirements.txt

Or, you can manually add it to your requirements.txt file.

Next, revise your application’s Procfile to use Gunicorn. Here’s an example Procfile

from daphne.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.