That's great! Hope you keep using it and it helps your document management
needs.

As far as I know that is the default behavior of Linux, it tends to use all
remaining free memory for different caches including disk (
http://www.linuxatemyram.com). Python and Django do their own memory
management and beyond keeping the number of DB connection and active file
handles in check there is not much we can (technically can but shouldn't)
do at the application level to manage memory. That is not to say that a
memory usage audit of Mayan is not necessary (the memory footprint of Mayan
was last documented several versions ago).
On Jul 30, 2014 8:05 AM, "Michel Lavoie" <[email protected]> wrote:

> Hi again,
>
> First of all thanks for the wonderful application, I've been playing with
> it for a few days now and everyone I showed it to were quite impressed!
>
> I have an issue with the memory usage though and am wondering how to solve
> it. My server has 2GB of RAM (and a 2GB swap) and I thought it would be
> more than enough, but after uploading a few PDF the RAM usage quickly goes
> over 2GB. I thought it was because of OCR but it seems to be mostly
> allocated to uwsgi threads.
>
> I didn't really modify the uwsgi setup, apart from enabling 4 threads (I
> have 4 cores), and using --enable-threads. I tried logging out and
> disabling OCR but the only real solution I found is to restart the uwsgi
> process.
>
> I really don't have much knowledge on memory management but is it possible
> that mayan somehow doesn't release allocated memory when it is no longer
> needed? Just navigating through the recent files makes the memory
> allocation increase significantly, but when I logout the memory stays
> really high. Or is it a problem with uwsgi?
>
> Some info on my installation:
>
> Linux odroid 3.8.13.26-1-ARCH #3 SMP PREEMPT Mon Jul 14 20:16:59 MDT 2014
> armv7l GNU/Linux
> uWSGI==2.0.6
> mayan-edms==1.0.rc3
> Django==1.6.5
>
> My uwsgi command (in mayan.service / systemd, after source bin/activate):
> /srv/http/mayan/bin/uwsgi --socket /var/run/mayan/mayan.sock
> --chmod-socket --processes 4 --uid mayan --gid mayan --logto
> /var/log/mayan.log --wsgi-file /srv/http/mayan/bin/wsgi.py --enable-threads
>
> Thank you,
>
> Michel
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Mayan EDMS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to