GNOME Bugzilla – Bug 469235
evince is a memory hog
Last modified: 2009-04-28 14:12:52 UTC
Please describe the problem: Recent versions of evince eats memory like crazy. Opening any document quickly eats over 100 MB, and opening a large document (at least tens of pages) makes the system slow to a crawl. Example: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 16211 drzeus 20 0 417m 264m 6276 S 0.0 52.5 0:09.56 evince Perhaps the system requirement should specify "At least 2GB RAM" ;) Steps to reproduce: Open any document, the larger the better. Actual results: Machines swaps like there's no tomorrow. Expected results: Reasonable memory usage. Does this happen every time? Yes. Other information:
I can't reproduce it. Could you attach a valgrind log file here, please? Thanks for reporting.
Created attachment 94122 [details] valgrind.log Attached, although it seems to be missing things. The number it claims is nowhere near what top states.
reopening.
http://elettrotecnica.albertomiorin.com/appunti.html Pretty much all of the (huge) PDFs in that webpage bring Evince's memory usage over the top, down into the OOM killer. Time is a factor. Going up and down the documents leads in overlong "Loading..." times. Example: http://elettrotecnica.albertomiorin.com/Appunti/Capitolo5-senza%20pag%20162.pdf (31 pages in 21.4 MB) (!) From kern.log: > Jul 24 13:31:18 bPortatile kernel: [13971.379398] evince invoked oom-killer: gfp_mask=0x1201d2, order=0, oomkilladj=0 > Jul 24 13:31:18 bPortatile kernel: [13971.379412] Pid: 15154, comm: evince Not tainted 2.6.24-20-generic #1 > <snip> > Jul 24 13:31:18 bPortatile kernel: [13971.389826] Out of memory: kill process 15154 (evince) score 129949 or a child > Jul 24 13:31:18 bPortatile kernel: [13971.389870] Killed process 15154 (evince) From htop: (I reopened evince a few seconds after the OOM freeze.) > Load average: 0.19 0.33 0.50 Uptime: 06:43:48 > Tasks: 247 total, 1 running Time: 13:59:15 > PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command > <snip> > 23438 badp 20 0 147M 116M 13148 S 0.0 11.6 0:19.92 evince > 23437 badp 20 0 147M 116M 13148 S 0.0 11.6 0:21.67 evince My swap is disabled; I have 1002 MB of dedicated RAM.
This document works perfectly here. I think you just need to update poppler. 3290 shmyrev 20 0 83344 44m 12m S 0 2.2 0:15.73 evince
Created attachment 120437 [details] Memory map of evince Memory map for evince. opening a 2mb pdf consumes more than 450mb of memory. Same pdf takes 15mb for kpdf.
As soon as I open a pdf, evice hogs up as much as ~450mb of memory. 3820 Upmanyu 20 0 487m 415m 10m S 0 41.5 0:06.02 evince am using: kernel: 2.6.23.1-42.fc8 evince: evince-2.20.2-1.fc8 poppler: poppler-0.6-2.fc8 attachment: memory map of the process the same pdf when opened with kpdf takes ~15mb of memory
Thanks for taking the time to report this bug. This particular bug has already been reported into our bug tracking system, but we are happy to tell you that the problem has already been fixed. It should be solved in the next software version. You may want to check for a software upgrade. *** This bug has been marked as a duplicate of 504913 ***