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,
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
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
> > > 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?
>
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
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'
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
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?
> 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
ever I do restart the
> > > apache processes, memory usage doesn't reset to the same baseline
> > > 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
n my last check the apache processes peaked at about
> > 85MB. If there's a memory leak in my application, it wouldn't still
> > leak after I've restarted apache, would it?
>
> > I'll try the Webfaction forum too. Thanks, and keep the advice coming!
>
> > On May 29, 8:15 pm,
ED]> 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 issues is practica
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 all
&
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 imposes a
40MB limit
14 matches
Mail list logo