Re: Django shared hosting

2008-01-17 Thread [EMAIL PROTECTED]
Just go webfaction and save yourself a lot of pain later. They give quite a bit of space, and if you really need insane space for media or something, just keep a dreamhost (or whoever) account laying around. Rodrigo Culagovski wrote: > Can anybody recomend a shared-hosting that: > > a) is Django

Django shared hosting

2008-01-17 Thread Rodrigo Culagovski
Can anybody recomend a shared-hosting that: a) is Django ready, with the svn-version installed or installable b) is as good or better and as cheap or cheaper then Webfaction c) gives you an insane amount of space (like Dreamhost) Basically, I need a host for a new project, and am thinking of W

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
On May 30, 12:48 pm, chrominance <[EMAIL PROTECTED]> wrote: > PID PPID RSS COMMAND > 17122 1 21504 /home/---/webapps/django/apache2/bin/httpd -f / > home/---/webapps/django/apache2/conf/httpd.conf > 14180 14154 1808 sshd: [EMAIL PROTECTED]/2 > 14181 14180 1464 -bash > 14892 17122 20496 /ho

Re: Django, shared hosting memory limits and memory optimization

2007-05-29 Thread chrominance
PID PPID RSS COMMAND 17122 1 21504 /home/---/webapps/django/apache2/bin/httpd -f / home/---/webapps/django/apache2/conf/httpd.conf 14180 14154 1808 sshd: [EMAIL PROTECTED]/2 14181 14180 1464 -bash 14892 17122 20496 /home/---/webapps/django/apache2/bin/httpd -f / home/---/webapps/django/apa

Re: Django, shared hosting memory limits and memory optimization

2007-05-29 Thread Graham Dumpleton
What is important to understand with Apache is that there is a parent process, which effectively acts as a supervisor process, and the child processes which actually accept and handle requests. When one uses 'restart' with the traditional 'apachectl' management command, it only kills off and resta

Re: Django, shared hosting memory limits and memory optimization

2007-05-29 Thread chrominance
I've restarted apache several times, using the restart command in the webapps/django directory provided by Webfaction. Perhaps there's a more absolute restart command 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 th

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 all > have memory limits, and w

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 imposes a 40MB limit. We're