Bug#641541: xulrunner-6.0: eats too much (well beyond available) memory

Luca Capello luca at pca.it
Fri Sep 23 12:06:52 UTC 2011


found 641541 7.0~b5-1
found 641541 8.0~a2+20110915042012-1
thanks

Hi there!

On Wed, 14 Sep 2011 12:23:26 +0200, Mike Hommey wrote:
> On Wed, Sep 14, 2011 at 12:11:01PM +0200, Luca Capello wrote:
>> On Wed, 14 Sep 2011 11:42:31 +0200, Mike Hommey wrote:
>> > On Wed, Sep 14, 2011 at 11:37:57AM +0200, Luca Capello wrote:
>> >> I have now installed xulrunner-7.0 and I will report back what happens.
>> 
>> xulrunner-7.0 seems to use the same amount, let me see if it will be
>> killed someday:
>> 
>>   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
>>  2886 luca      20   0 1147m 727m  24m S   10 36.3   3:27.64 xulrunner-bin

Despite the memory consumption (Version: added), xulrunner-7.0_7.0~b5-1
was never killed, even after having left it open for more than 2 days.

FWIW, I tried with iceweasel_7.0~b6-1 with 102 tabs (the same as in
conkeror) and there is no IMHO visible difference:

   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 11244 luca      20   0 1174m 730m  24m S   10 36.5   3:05.16 xulrunner-bin [conkeror]
 13858 luca      20   0 1271m 820m  26m S   17 40.9   1:33.88 firefox-bin

> I think you have two problems:
> - xulrunner takes a lot of memory, and that should be better in xulrunner
>   8.0 and 9.0 (8.0a2 builds on mozilla.debian.net)

BTW, a hint how to manually download packages from mozilla.d.n would be
helpful, for those lazy users who sometime browse with no JavaScript
support ;-)

I tried both conkeror and iceweasel with 8.0~a2+20110915042012-1 and the
memory consumption did not change (Version: added):

   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 24367 luca      20   0 1209m 742m  24m S   12 37.1   2:05.19 xulrunner-bin [conkeror]
 31880 luca      20   0 1292m 814m  27m S   14 40.7   1:22.66 firefox-bin

> - conkeror actively loads all your tabs
>
> We should probably clone this bug and reassign to conkeror.

Restoring a session with iceweasel_8.0~a2+20110915042012-1 without
visiting all the tabs does not use less resources, is this another bug?

For the reason above, I have not cloned the bug yet.

> BTW, about:memory should work in conkeror.

Attached the about:memory pages for conkeror and iceweasel with both
xulrunner-7.0 and 8.0.

>> Two things I have completely forgot to add while reporting the bug:
>> 
>> a) no external plugins here (no Flash/Gnash, no Java)
>> 
>> b) xulrunner is the main battery drainer (see the CPU/MEM consumption
>>    above), which is a bad effect other than the hibernation one already
>>    reported, here the powertop output for the same session above:
>> 
>>          Usage       Events/s    Category       Description
>>      132.1 ms/s     373.4        Process        /usr/lib/xulrunner-7.0/xulrunner-bin
>
> That's a different problem, but it's probably related to the number of
> tabs you use.

It does not seem related to the number of tabs I use, as you can see
From the tests below done with 102 tabs opened and visited.  Actually I
would say it is not a bug, given that it is not constant and it is not
linked to the program using xulrunner:

      Usage       Events/s    Category       Description
   14.4 ms/s      49.0        Process        /usr/lib/xulrunner-8.0/xulrunner-bin
   39.7 ms/s     185.2        Process        /usr/lib/iceweasel/firefox-bin [8.0~a2+20110915042012-1]
   53.0 ms/s     201.5        Process        /usr/lib/iceweasel/firefox-bin [7.0~b6-1]
   64.8 ms/s     152.8        Process        /usr/lib/iceweasel/firefox-bin [8.0~a2+20110915042012-1]
  160.4 ms/s     508.5        Process        /usr/lib/xulrunner-8.0/xulrunner-bin
  208.6 ms/s     690.7        Process        /usr/lib/xulrunner-7.0/xulrunner-bin
  361.7 ms/s     184.8        Process        /usr/lib/iceweasel/firefox-bin [7.0~b6-1]
  456.4 ms/s     136.1        Process        /usr/lib/xulrunner-8.0/xulrunner-bin

Thx, bye,
Gismo / Luca

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 641541_xulrunner_memory-consumption.tar.gz
Type: application/octet-stream
Size: 45289 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-mozilla-maintainers/attachments/20110923/d7027f55/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-mozilla-maintainers/attachments/20110923/d7027f55/attachment-0001.pgp>


More information about the pkg-mozilla-maintainers mailing list