I am hoping you might gracefully suggest what we might be able to do
to improve our problem of memory usage being consumed by apache.
We have a turbo gears type web server with 2GB ram which is running a
point of sale system for about 15 or 18 stores.
We are running mod_wsgi 2.5, but about to upgrade to 3.3.
Is it typical for one process (wsgi:rarch) to consume virtually all
the CPU and memory consumption while the remaining apache children
seem to not be doing much?
Is it typical for memory consumption to increase throughout a day?
I've been reading the release notes, was lazy initialisation of Python
interpreter already existent with version 2.5?
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
444 apache 25 0 1682m 1.1g 10m S 26.0 58.2 35:54.74 httpd
20869 root 18 0 122m 24m 1576 S 0.0 1.2 0:09.09 lfd
4046 root 15 0 79712 14m 1788 S 0.0 0.7 0:03.64 perl
3471 root 15 0 154m 8508 4384 S 0.0 0.4 16:00.12 snmpd
445 apache 15 0 191m 8260 2968 S 0.0 0.4 0:02.11 httpd
6957 apache 15 0 191m 8200 2968 S 0.0 0.4 0:01.23 httpd
465 apache 15 0 191m 8088 2968 S 0.0 0.4 0:02.02 httpd
5167 apache 15 0 190m 7988 2968 S 0.3 0.4 0:01.81 httpd
6956 apache 15 0 190m 7868 2964 S 0.0 0.4 0:01.34 httpd
5168 apache 15 0 190m 7556 2968 S 0.0 0.4 0:01.57 httpd
468 apache 15 0 190m 7552 2968 S 0.0 0.4 0:02.25 httpd
463 apache 15 0 190m 7544 2968 S 0.0 0.4 0:02.14 httpd
5169 apache 15 0 190m 7540 2968 S 0.0 0.4 0:01.73 httpd
464 apache 15 0 190m 7528 2968 S 0.0 0.4 0:02.19 httpd
4723 apache 15 0 190m 7528 2968 S 0.0 0.4 0:01.79 httpd
466 apache 15 0 190m 7492 2968 S 0.0 0.4 0:02.15 httpd
6958 apache 15 0 190m 7480 2968 S 0.0 0.4 0:01.27 httpd
467 apache 15 0 190m 7476 2968 S 0.0 0.4 0:02.08 httpd
469 apache 15 0 190m 7476 2968 S 0.0 0.4 0:02.27 httpd
2445 apache 15 0 190m 7476 2968 S 0.0 0.4 0:02.04 httpd
10984 apache 15 0 190m 7356 2912 S 0.0 0.4 0:00.39 httpd
442 root 15 0 189m 7332 3240 S 0.0 0.4 0:00.07 httpd
10982 apache 15 0 190m 7316 2912 S 0.0 0.4 0:00.44 httpd
10983 apache 15 0 190m 7300 2900 S 0.0 0.4 0:00.50 httpd
14399 ntp 15 0 23384 5020 3896 S 0.0 0.2 0:10.94 ntpd
apache .conf file:
=========
LoadModule wsgi_module modules/mod_wsgi.so
AddHandler wsgi-script .wsgi
WSGIPythonHome /home/rarch/tg2env
WSGIPythonEggs /home/rarch/tg2env/lib/python-egg-cache
WSGIDaemonProcess rarch threads=15 display-name=%{GROUP} python-eggs=/
home/rarch/tg2env/lib/python-egg-cache
WSGIProcessGroup rarch
WSGISocketPrefix run
WSGIRestrictStdout Off
# we'll make the root directory of the domain call the wsgi script
WSGIScriptAlias /tg /home/rarch/trunk/src/appserver/wsgi-config/wsgi-
deployment.py
# make the wsgi script accessible
<Directory /home/rarch/trunk/src/appserver/wsgi-config>
Order allow,deny
Allow from all
</Directory>
<Location /tg/_debug>
AuthType Basic
AuthName "For your company's security, this link is for
retailarchitects.com support only. Please copy the Server Debug link
and email it to your administrator."
AuthUserFile /home/rarch/trunk/src/appserver/debugpasswd
Require valid-user
</Location>
================
Thank you so very much for any time you spare to point me in the right
direction, documentation regarding memory management with mod_wsgi,
etc.
Kent
--
You received this message because you are subscribed to the Google Groups
"modwsgi" 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/modwsgi?hl=en.