run Django ใน mode prefork นี่น่ากลัวแฮะ
น่ากลัวตอนมัน fork process แล้วสั่ง ps ดู เห็น process เยอะจัง แต่เค้าว่ากันว่ามันจะเร็วกว่า threaded แต่ถ้าใช้บน windows ก็ต้องใช้ threaded อย่างเดียว
cwt@www:~/cwt$ ps x
PID TTY STAT TIME COMMAND
4567 ? S 0:00 sshd: cwt@pts/0
4568 pts/0 Ss 0:00 -bash
4770 ? S 0:00 /usr/bin/python -O manage.py runfcgi host=127.0.0.1 port=9114 method=prefork pidfile=/home/cwt/django.pid
4771 ? S 0:00 /usr/bin/python -O manage.py runfcgi host=127.0.0.1 port=9114 method=prefork pidfile=/home/cwt/django.pid
4772 ? S 0:00 /usr/bin/python -O manage.py runfcgi host=127.0.0.1 port=9114 method=prefork pidfile=/home/cwt/django.pid
4773 ? S 0:00 /usr/bin/python -O manage.py runfcgi host=127.0.0.1 port=9114 method=prefork pidfile=/home/cwt/django.pid
4774 ? S 0:00 /usr/bin/python -O manage.py runfcgi host=127.0.0.1 port=9114 method=prefork pidfile=/home/cwt/django.pid
4775 ? S 0:00 /usr/bin/python -O manage.py runfcgi host=127.0.0.1 port=9114 method=prefork pidfile=/home/cwt/django.pid
4784 pts/0 R+ 0:00 ps x
0 comment(s) 18/11/2008 0:46
