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