I've found one of my app module has a large model. there are 207 models in
models.py.  When I add this app module into INSTALL_APPS, the process
instance memory increase nearly 10M more.

I think can I move these model classes out of my models.py file and move
them in to another .py file. And when I want to use it , just Dynamic Load
them as need?? Any suggestions?

On Wed, Mar 30, 2011 at 9:41 PM, 付毅 <skysb...@gmail.com> wrote:

> i don't think 100 instance means to 100 CPUs. I just want to use http_load
> to test pressure to my web server. if i make the 100 cocurrent request per
> second with 100 cocurrent connection. I will make 100 python process
> instance when I deploy my web project in prefork environment. Any others
> agree with me?
>
>
> On Wed, Mar 30, 2011 at 9:07 PM, Xavier Ordoquy <xordo...@linovia.com>wrote:
>
>> Hi,
>>
>> > Because
>> > if an instance cost 60M memory, when I deploy my project in prefork
>> > web server with 100 instance, i will cost 6GB memory. I don't think
>> > this is a normal state.
>>
>> I hardly see the need for 100 instances.
>> Could you elaborate on that need ?
>> Imagine those 100 instances are processing at full speed. You'll need 100
>> CPUs, not counting databases.
>> I doubt 6Gb would be an issue if you already have 100 CPUs.
>>
>> Regards,
>> Xavier.
>>
>>
>> --
>> 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
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>

-- 
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 
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