On 19/07/10 14:41, Tereno wrote:
> Hi there,
> 
> I have a few questions about Django deployment on production so
> hopefully you can help me sort it out.
> 
> Firstly, what's the minimum memory requirements for a Django + Apache
> + mod_wsgi setup? It seems like my server ran out of memory when I
> tried it and I think I may only have 256MB RAM.

Well, that does depend on what your app is doing. There's some basic
overheads that probably can add up to several tens of megs, then stuff
you actually do is on top of that...

256MiB is a little cramped by modern bloaty standards, but just in case:
by any chance did you still have settings.DEBUG on during your test?
[1]. That usually causes disconcertingly large and rapidly increasing
memory usage as it logs every sql query to an in-memory list for
debugging purposes.

You can periodically empty django.db.connection.queries to keep it down
when settings.DEBUG is on, but then of course you lose the log in
question. For production, of course DEBUG should be off.

[1] http://docs.djangoproject.com/en/1.2/ref/settings/#debug

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to