On Monday 26 Nov 2012 09:56:27 Florian Philipp wrote: > Hi list! > > I have a suspicion that viewing certain PDFs in okular causes X server > to leak memory. Currently it is using 1.8 GB after 3 days uptime. Has > anyone else observed that? Is there a way to inspect X server's memory > usage?
I have noticed that okular recently started breaking into a sweat when it renders pdf files. Even a four page document with a bit of colour and graphics seems to push the cpu: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 16387 michael 23 3 466m 52m 30m S 102 1.3 0:36.88 /usr/bin/okular In case someone can interpret the content of the file: ===================================================== $ mupdfinfo Downloads/E016378510.pdf Downloads/E016378510.pdf: PDF-1.4 Info object (18 0 R): << /CreationDate (D:20121126030121-05'00') /Subject <> /Author <> /Creator (PlanetPress Watch) /Keywords <> /Producer (Distiller) /ModDate (D:20121126030123-05'00') /Title (CONFIRMATIONS) >> Pages: 4 Retrieving info from pages 1-4... Mediaboxes (1): 1 ( 21 0 R): [ 0 0 612 792 ] Fonts (2): 1 ( 21 0 R): TrueType 'FIBAKI+GillSans' (23 0 R) 1 ( 21 0 R): Type1 'GillSans-Bold' (28 0 R) Images (7): 1 ( 21 0 R): [ DCT ] 1125x1050 8bpc DevGray (31 0 R) 1 ( 21 0 R): [ DCT ] 2550x3300 8bpc ICC (32 0 R) 1 ( 21 0 R): [ Flate ] 481x164 8bpc ICC (33 0 R) 2 ( 1 0 R): [ DCT ] 2550x3300 8bpc ICC (4 0 R) 2 ( 1 0 R): [ DCT ] 1125x1050 8bpc DevGray (5 0 R) 3 ( 6 0 R): [ DCT ] 2550x3300 8bpc ICC (9 0 R) 4 ( 10 0 R): [ DCT ] 2549x3300 8bpc ICC (13 0 R) ===================================================== Once rendered, the CPU goes down to normal levels. The problem does not seem to occur when the pdf is just text, i.e. no photographs, or complex graphics in it. Other than the various top apps, perhaps you can try lsof? -- Regards, Mick
signature.asc
Description: This is a digitally signed message part.