On 10/02/2015, at 11:57 PM, Paul Royik <[email protected]> wrote:
> Output of ps auxwww is > > USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND > simamura 3282 0.0 0.0 108304 1888 pts/12 Ss+ 12:44 0:00 -bash > simamura 7115 0.0 0.0 51548 1972 ? Ss Feb09 0:01 > /home/simamura/webapps/django_gradis/apache2/bin/httpd.worker -f > /home/simamura/webapps/django_gradis/apache2/conf/httpd.conf -k start > simamura 7116 0.0 0.2 636824 39208 ? Sl Feb09 0:02 > /home/simamura/webapps/django_gradis/apache2/bin/httpd.worker -f > /home/simamura/webapps/django_gradis/apache2/conf/httpd.conf -k start > simamura 7117 0.0 0.2 636824 44344 ? Sl Feb09 0:02 > /home/simamura/webapps/django_gradis/apache2/bin/httpd.worker -f > /home/simamura/webapps/django_gradis/apache2/conf/httpd.conf -k start > simamura 7118 0.0 0.0 322000 2484 ? Sl Feb09 0:00 > /home/simamura/webapps/django_gradis/apache2/bin/httpd.worker -f > /home/simamura/webapps/django_gradis/apache2/conf/httpd.conf -k start > simamura 14365 0.0 0.0 66380 2216 ? Ss Feb09 0:01 httpd > (mod_wsgi-express) -f > /home/simamura/webapps/django_math/express/httpd.conf -DWSGI_ACCESS_LOG > -DWSGI_MPM_ENABLE_EVENT_MODULE -DWSGI_MPM_EXISTS_EVENT_MODULE > -DWSGI_MPM_EXISTS_WORKER_MODULE -DWSGI_MPM_EXISTS_PREFORK_MODULE -k start > simamura 14372 0.0 0.0 858588 3972 ? Sl Feb09 0:12 httpd > (mod_wsgi-express) -f > /home/simamura/webapps/django_math/express/httpd.conf -DWSGI_ACCESS_LOG > -DWSGI_MPM_ENABLE_EVENT_MODULE -DWSGI_MPM_EXISTS_EVENT_MODULE > -DWSGI_MPM_EXISTS_WORKER_MODULE -DWSGI_MPM_EXISTS_PREFORK_MODULE -k start > simamura 15442 0.0 0.0 108304 1892 pts/13 Ss 12:52 0:00 -bash > simamura 16341 5.0 1.1 991380 186968 ? Sl 11:50 3:18 > (wsgi:localhost:20241:1092) -f > /home/simamura/webapps/django_math/express/httpd.conf -DWSGI_ACCESS_LOG > -DWSGI_MPM_ENABLE_EVENT_MODULE -DWSGI_MPM_EXISTS_EVENT_MODULE > -DWSGI_MPM_EXISTS_WORKER_MODULE -DWSGI_MPM_EXISTS_PREFORK_MODULE -k start > simamura 17572 0.0 0.0 793052 4128 ? Sl Feb09 0:11 httpd > (mod_wsgi-express) -f > /home/simamura/webapps/django_math/express/httpd.conf -DWSGI_ACCESS_LOG > -DWSGI_MPM_ENABLE_EVENT_MODULE -DWSGI_MPM_EXISTS_EVENT_MODULE > -DWSGI_MPM_EXISTS_WORKER_MODULE -DWSGI_MPM_EXISTS_PREFORK_MODULE -k start > simamura 19510 0.0 0.0 110236 1160 pts/13 R+ 12:55 0:00 ps auxwww > > > But it still unclear is it calculator page or some other pages. Is there > anyway to measure memory usage of calulcator/page in isolation? That is why I said to separate out your algorithm for your calculator into a separate runnable command line Python script such that you can give it different input and duration to run. As you run it in one window from the command line, use ps in another window to watch whether the RSS memory value keeps increasing over time. That way yo can know whether it is an issue or not and will eliminate that key algorithm as being the source of your major memory usage. If it uses practically no memory, then it is going to be something else in your actual web application which is the issue. Graham -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
