> Hi,
>
> I'm testing my production environment (vps with ubuntu 10.4 lts lucid,
> nginx, uwsgi, postgresql, latest web2py), and I detected some memory
> problems, please check:
>
>
> root@vps:~# htop
>
>   1  [||
>                                  1.0%]     Tasks: 104 total, 1 running
>   2  [
>                                  0.0%]     Load average: 0.57 0.17 0.04
>
> Mem[|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||342/358MB]
>     Uptime: 5 days, 05:55:08
>   Swp[||||||||||||||||||||||||||||||||
>                            297/1023MB]
>
>   PID USER     PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
>
> 25948 www-data  20   0  124M   932   412 S  0.0  0.3  0:01.31  `-
> /usr/bin/uwsgi-python --master --no-orphans --processes 2 --logdate
> --chmod-socket=660 --uid www-data --gid www-data --daemonize
> /var/log/uwsgi-python/web2py.log --pidfile
>
> 25963 www-data  20   0  393M 88796  2124 D  0.0 24.2  0:12.39  |   `-
> /usr/bin/uwsgi-python --master --no-orphans --processes 2 --logdate
> --chmod-socket=660 --uid www-data --gid www-data --daemonize
> /var/log/uwsgi-python/web2py.log --pid
>
> 25962 www-data  20   0  364M  189M  2116 S  0.0 52.9  0:11.34  |   `-
> /usr/bin/uwsgi-python --master --no-orphans --processes 2 --logdate
> --chmod-socket=660 --uid www-data --gid www-data --daemonize
> /var/log/uwsgi-python/web2py.log --pid
>
>
>

Add --memory-report to your uWSGI command line. You will get in
/var/log/uwsgi-python/web2py.log the memory consumed after each request.
If there is a leak you should find it preatty easy.


-- 
Roberto De Ioris
http://unbit.it

Reply via email to