Re: Memory limits

2009-09-13 Thread Graham Dumpleton
It also depends on how OP deploys Django. Use embedding with mod_python or mod_wsgi, instead of daemon mode of mod_wsgi or fastcgi, then you can be setting yourself up for problems. Read: http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html Graham On Sep 14, 1:52 am, P

Re: Memory limits

2009-09-13 Thread Peter Bengtsson
Hard to say as it depends on your app but can't you just run the app on your laptop and see how much memory it takes up when you run some basic stresstests. Django is quite close to pure python but when you extract large lists of model instance objects into lists it can push the memory consumption

Memory limits

2009-09-13 Thread Pablo Escobar
Hi i'm wondering what is memory consumption for django 1.1 + postgre. Will it be enough to have VPS with 256 MB of RAM as entry level for recent projects? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djan

Re: Django, shared hosting memory limits and memory optimization

2007-06-29 Thread Remi
> > > BTW, if you run 'ldd' on the mod_python.so file from the Apache > > > modules directory, does it use Python as a shared library or is there > > > no reference to libpython2.?.so at all, meaning it is embedded with in > > > mod_python.so? What is the actual size of your mod_python.so file? >

Re: Django, shared hosting memory limits and memory optimization

2007-06-02 Thread chrominance
That's a bit creepy. If not the DEBUG issue, then what? The parent Apache process hasn't budged from 3MB since the restart and I can't imagine what else would have changed between the 90MB period and the 30MB period. I loaded my project from svn so there were no .pyc files initially, I've never us

Re: Django, shared hosting memory limits and memory optimization

2007-06-02 Thread Graham Dumpleton
BTW, one further thing you can experiment with as far as trying to bring down memory use, is if you have access to main Apache configuration file, try setting: PythonOptimize On at global scope outside of any virtual host containers. This will have the same affect as having supplied '-O -O' o

Re: Django, shared hosting memory limits and memory optimization

2007-06-02 Thread Graham Dumpleton
On Jun 3, 5:40 am, chrominance <[EMAIL PROTECTED]> wrote: > Epilogue: it looks like the major culprit behind my skyrocketing > memory usage was indeed my failure to properly restart all the apache > processes; it looks like the parent process was still storing debug > info from when I had DEBUG=Tr

Re: Django, shared hosting memory limits and memory optimization

2007-06-02 Thread chrominance
Epilogue: it looks like the major culprit behind my skyrocketing memory usage was indeed my failure to properly restart all the apache processes; it looks like the parent process was still storing debug info from when I had DEBUG=True in my settings.py, so that setting it to False and soft restart

Re: Django, shared hosting memory limits and memory optimization

2007-05-29 Thread Graham Dumpleton
On May 30, 1:52 pm, chrominance <[EMAIL PROTECTED]> wrote: > > BTW, if you run 'ldd' on the mod_python.so file from the Apache > > modules directory, does it use Python as a shared library or is there > > no reference to libpython2.?.so at all, meaning it is embedded with in > > mod_python.so? Wha

Re: Django, shared hosting memory limits and memory optimization

2007-05-29 Thread chrominance
> Depends on what RSS means for that platform when running ps. This may > count private memory used plus shared memory use. If Webfaction is > counting shared memory use in your 40MB limit would suck somewhat, as > they would be double counting across all processes. > > If you run 'top' it general

Re: Django, shared hosting memory limits and memory optimization

2007-05-29 Thread Graham Dumpleton
mmand I don't know about, but I'm pretty sure > > > that's the one--whenever I use it, memory usage seems to go down. > > > > Also, I'm not sure if this is relevant, but whenever I do restart the > > > apache processes, memory usage doesn't reset

Re: Django, shared hosting memory limits and memory optimization

2007-05-29 Thread chrominance
; level--for example, the site ran just fine with about 30-40MB of RAM > > over the weekend, but restarting apache now only gets us down to about > > 65MB. And upon my last check the apache processes peaked at about > > 85MB. If there's a memory leak in my application, it wouldn

Re: Django, shared hosting memory limits and memory optimization

2007-05-29 Thread Graham Dumpleton
apache, would it? > > I'll try the Webfaction forum too. Thanks, and keep the advice coming! > > On May 29, 8:15 pm, "Jay Parlar" <[EMAIL PROTECTED]> wrote: > > > On 5/29/07, chrominance <[EMAIL PROTECTED]> wrote: > > > > I've recently put up

Re: Django, shared hosting memory limits and memory optimization

2007-05-29 Thread chrominance
uot; <[EMAIL PROTECTED]> wrote: > On 5/29/07, chrominance <[EMAIL PROTECTED]> wrote: > > > > > I've recently put up a newspaper site on Webfaction that was developed > > without much concern for memory limits--coming from PHP, my knowledge > > of memory is

Re: Django, shared hosting memory limits and memory optimization

2007-05-29 Thread Jay Parlar
On 5/29/07, chrominance <[EMAIL PROTECTED]> wrote: > > I've recently put up a newspaper site on Webfaction that was developed > without much concern for memory limits--coming from PHP, my knowledge > of memory issues is practically nil. Of course, Webfaction's plans a

Django, shared hosting memory limits and memory optimization

2007-05-29 Thread chrominance
I've recently put up a newspaper site on Webfaction that was developed without much concern for memory limits--coming from PHP, my knowledge of memory issues is practically nil. Of course, Webfaction's plans all have memory limits, and we're currently on Shared 1, which impos