Hello
Sorry for the newbie question, but I was wondering: When launching
multiple uWSGI processes, do they all share a single Python
interpreter in RAM?
Here's what "uwsgi --http-socket :9090 --plugin=python --wsgi-file
hello.py-processes 4 --threads 2" says;
================================
*** Starting uWSGI 1.9.5 (32bit) on [Tue Apr 16 13:28:18 2013] ***
compiled with version: 4.4.5 on 16 April 2013 12:45:12
os: Linux-2.6.32-5-kirkwood #1 Mon Feb 25 13:55:40 UTC 2013
nodename: debian
machine: armv5tel
clock source: unix
detected number of CPU cores: 1
current working directory: /tmp/sdcard/uwsgi-1.9.5
detected binary path: /tmp/sdcard/uwsgi-1.9.5/uwsgi
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag)
***
*** WARNING: you are running uWSGI without its master process manager
***
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
uwsgi socket 0 bound to TCP address :9090 fd 3
Python version: 2.6.6 (r266:84292, Dec 27 2010, 23:43:15) [GCC 4.4.5
20100902 (prerelease)]
Python main interpreter initialized at 0x7cd30
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 286400 bytes (279 KB) for 8 cores
*** Operational MODE: preforking+threaded ***
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x7cd30
pid: 9954 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (pid: 9954, cores: 2)
spawned uWSGI worker 2 (pid: 9955, cores: 2)
spawned uWSGI worker 3 (pid: 9956, cores: 2)
spawned uWSGI worker 4 (pid: 9957, cores: 2)
================================
And here's what "ps aux" says:
================================
root 6325 0.0 0.8 10024 4152 pts/0 T Apr15 0:00
python
root 9954 0.5 1.0 19000 5180 pts/0 Sl+ 13:28 0:00
./uwsgi --http-socket :9090 --plugin=p
root 9955 0.2 0.6 19000 3288 pts/0 Sl+ 13:28 0:00
./uwsgi --http-socket :9090 --plugin=p
root 9956 0.2 0.6 19000 3288 pts/0 Sl+ 13:28 0:00
./uwsgi --http-socket :9090 --plugin=p
root 9957 0.2 0.6 19000 3288 pts/0 Sl+ 13:28 0:00
./uwsgi --http-socket :9090 --plugin=p
================================
Thank you.
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi