Re: How much memory does a django instance need was Does Hostmonster support Django?

2007-11-13 Thread Kenneth Gonsalves


On 13-Nov-07, at 7:10 PM, Forest Bond wrote:

> I guess maybe you could try to reduce your imports.

heavy use of PIL and reportlab is there even though there are at the  
most three users at a time. I remember running 4 sites on pre .91  
django on zettai and keeping well within the 64 mb limit. Sigh.

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



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



Re: How much memory does a django instance need was Does Hostmonster support Django?

2007-11-13 Thread Forest Bond
Hi,

On Tue, Nov 13, 2007 at 07:41:17AM +0530, Kenneth Gonsalves wrote:
> On 12-Nov-07, at 6:25 PM, Forest Bond wrote:
> > Maybe you need to decrease your ServerLimit?  Each forked server  process
> > leads to increased memory usage.  For a really low volume site, you can  get
> > away with ServerLimit 1, although I'd be sure to host your media files in a
> > different instance (webfaction has docs for doing this somewhere).
> 
> did that
>
> > Make sure that Django and Python debug settings are disabled, too
> > (apache2.conf PythonDebug, settings.py DEBUG).
> 
> did all this - I am still getting around 35 MB per instance. And it  
> is not the fault of webfaction. The same site on my local machine  
> gives the same figure. This on the latest svn in both cases. The last  
> time I looked at these figures, it was around 12-15mb an instance.  
> Any other clues?

This is probably normal memory usage.  This is not a problem, as long as it
doesn't grow much beyond that, right?

I have two small sites that share a lot of code running on a webfaction account.
With ServerLimit 1 and media hosted on the main apache instance (which doesn't
count against me for RAM usage), I stay pretty constant at 32-35MB.  I don't
think it would be possible to get much lower than that.  Libraries have to get
loaded somewhere, afterall.

I guess maybe you could try to reduce your imports.

-Forest
-- 
Forest Bond
http://www.alittletooquiet.net


signature.asc
Description: Digital signature


Re: How much memory does a django instance need was Does Hostmonster support Django?

2007-11-12 Thread girzel


> did all this - I am still getting around 35 MB per instance. And it  
> is not the fault of webfaction. The same site on my local machine  
> gives the same figure. This on the latest svn in both cases. The last  
> time I looked at these figures, it was around 12-15mb an instance.  
> Any other clues?

I remember someone there saying that right after you restart Apache
the RAM usage is low, but after it's served a few requests the usage
jumps, and then stays high -- ie, it's normal. Had you kept it at
12-15 for a long time previously? Is it possible that the last time
you checked usage was just following an Apache restart?

Otherwise, my solution to these problems is to host unpopular websites
that no one looks at.

Yrs,
E


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



Re: How much memory does a django instance need was Does Hostmonster support Django?

2007-11-12 Thread Kenneth Gonsalves


On 12-Nov-07, at 6:25 PM, Forest Bond wrote:

> Maybe you need to decrease your ServerLimit?  Each forked server  
> process leads
> to increased memory usage.  For a really low volume site, you can  
> get away with
> ServerLimit 1, although I'd be sure to host your media files in a  
> different
> instance (webfaction has docs for doing this somewhere).

did that
>
> Make sure that Django and Python debug settings are disabled, too  
> (apache2.conf
> PythonDebug, settings.py DEBUG).

did all this - I am still getting around 35 MB per instance. And it  
is not the fault of webfaction. The same site on my local machine  
gives the same figure. This on the latest svn in both cases. The last  
time I looked at these figures, it was around 12-15mb an instance.  
Any other clues?

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



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