I find something interesting - Python takes a lot of memory on Linux,
much more than it does on Windows.

I'm running a web.py app on Linux with lighttpd + FCGI. I specify 10
fastcgi instances in lighttpd.conf. The "top" command shows that each
Python process takes from 60-90MB memory (the VIRT field.) Is this normal?
The server has about 1.5GB memory and I can only start at most 15 Python
processes this way. I tried 20 and I got frequent memory errors. This
server does import some modules but mostly the ordinary ones such as os,
sys, urllib2, time, etc. and nothing too much memory consuming that
I'm aware of.

The same web.py app, when running in stand-alone mode with its
built-in web server, takes even more memory (108MB), upon start up,
before even serving any requests. The number does not drop after
starting up.

However, when this server runs on Windows - which is my dev environment -
in stand-alone mode, it only takes 8MB memory. Doesn't this sound like a
serious memory management issue with Python on Linux? I used to run
php with lighttpd + FCGI on servers with similar configuration. I was
able to run 100-200 PHP processes this way. PHP's behavior on Linux
is close to that on Windows.

-- 
Best regards,
Jack


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to