Re: Per-domain ROOT_URLCONF and TEMPLATE_DIRS

2007-07-01 Thread Vladimir Pouzanov
On 7/2/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > What is the initial memory size of the process when it is first > started? In other words, does it start out this large or grow over > time? > > Have you identified whether it is requests against specific URLs > within your application which

Re: Per-domain ROOT_URLCONF and TEMPLATE_DIRS

2007-07-01 Thread Graham Dumpleton
On Jul 1, 10:43 pm, "Vladimir Pouzanov" <[EMAIL PROTECTED]> wrote: > $ grep Vm /proc/9453/status > VmPeak:54556 kB > VmSize:54552 kB > VmLck: 0 kB > VmHWM: 9804 kB > VmRSS: 9804 kB > VmData:48160 kB > VmStk: 128 kB > VmExe: 4 kB > VmLib: 5528 kB > V

Re: Per-domain ROOT_URLCONF and TEMPLATE_DIRS

2007-07-01 Thread Graham Dumpleton
On Jul 1, 8:17 pm, [EMAIL PROTECTED] wrote: > Every django app grabs ~60mb of RAM. I'm currently running three > different django fcgi processes and that uses half of my available > RAM. What is the initial memory size of the process when it is first started? In other words, does it start out thi

Re: Per-domain ROOT_URLCONF and TEMPLATE_DIRS

2007-07-01 Thread Vladimir Pouzanov
$ grep Vm /proc/9453/status VmPeak:54556 kB VmSize:54552 kB VmLck: 0 kB VmHWM: 9804 kB VmRSS: 9804 kB VmData:48160 kB VmStk: 128 kB VmExe: 4 kB VmLib: 5528 kB VmPTE:60 kB settings.DEBUG = False settings.TEMPLATE_DEBUG = False On 7/1/07, Ti

Re: Per-domain ROOT_URLCONF and TEMPLATE_DIRS

2007-07-01 Thread Tim Chase
>> Every django app grabs ~60mb of RAM. I'm currently running three >> different django fcgi processes and that uses half of my available >> RAM. > > I'm kind of curious what you're doing with all that RAM ;) Sounds almost like the classic case of not turning off DEBUG settings, and having quer

Re: Per-domain ROOT_URLCONF and TEMPLATE_DIRS

2007-07-01 Thread James Bennett
On 7/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Every django app grabs ~60mb of RAM. I'm currently running three > different django fcgi processes and that uses half of my available > RAM. I'm kind of curious what you're doing with all that RAM ;) I run my blog on FastCGI, with a fair

Re: Per-domain ROOT_URLCONF and TEMPLATE_DIRS

2007-07-01 Thread farcaller
Every django app grabs ~60mb of RAM. I'm currently running three different django fcgi processes and that uses half of my available RAM. On 7/1/07, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > > Jeremy Dunck wrote: > > Two settings files being used by a single process? > > > > How would that work?

Re: Per-domain ROOT_URLCONF and TEMPLATE_DIRS

2007-06-30 Thread Ivan Sagalaev
Jeremy Dunck wrote: > Two settings files being used by a single process? > > How would that work? Oh... I missed the bit about a single process. But now I wonder why require this? One server can happily serve two sites either from separate mod_python handlers or separate FastCGI servers. Vlad

Re: Per-domain ROOT_URLCONF and TEMPLATE_DIRS

2007-06-30 Thread Jeremy Dunck
On 6/30/07, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > > Vladimir Pouzanov wrote: > serve both sites from one django process. > > Why not just have two settings files? Two settings files being used by a single process? How would that work? --~--~-~--~~~---~--~~ Y

Re: Per-domain ROOT_URLCONF and TEMPLATE_DIRS

2007-06-30 Thread Ivan Sagalaev
Vladimir Pouzanov wrote: > Hi all, > > I have two sites that run nearly identical django instances. I wonder > if it's possible to somehow set per-domain ROOT_URLCONF and > TEMPLATE_DIRS to serve both sites from one django process. Why not just have two settings files

Re: Per-domain ROOT_URLCONF and TEMPLATE_DIRS

2007-06-30 Thread Malcolm Tredinnick
On Sat, 2007-06-30 at 07:29 -0500, Jeremy Dunck wrote: > On 6/30/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > ... > > No, this isn't possible. The settings file is read once and then the > > settings are cached (and are assumed to be static). > > Actually, it *is* possible to alter the

Re: Per-domain ROOT_URLCONF and TEMPLATE_DIRS

2007-06-30 Thread Jeremy Dunck
On 6/30/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > ... > No, this isn't possible. The settings file is read once and then the > settings are cached (and are assumed to be static). Actually, it *is* possible to alter the urlconf that's processed on a per-request basis, though TEMPLATE_DIR

Re: Per-domain ROOT_URLCONF and TEMPLATE_DIRS

2007-06-30 Thread Malcolm Tredinnick
On Sat, 2007-06-30 at 14:38 +0300, Vladimir Pouzanov wrote: > Hi all, > > I have two sites that run nearly identical django instances. I wonder > if it's possible to somehow set per-domain ROOT_URLCONF and > TEMPLATE_DIRS to serve both sites from one django process. >

Per-domain ROOT_URLCONF and TEMPLATE_DIRS

2007-06-30 Thread Vladimir Pouzanov
Hi all, I have two sites that run nearly identical django instances. I wonder if it's possible to somehow set per-domain ROOT_URLCONF and TEMPLATE_DIRS to serve both sites from one django process. -- Sincerely, Vladimir "Farcaller" Pouzanov http