Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Is firefox constantly eating more and more memory?

  1. #1

    Default Is firefox constantly eating more and more memory?

    Hi there,
    I typically like to have multiple firefox windows open in my different virtual desktops.
    Typical case is that I leave on Friday with my computer locked and once I am back on Monday I can see the firefox memory consumption being hugely increased. After a fresh reboot firefox needs (for my number of windows 1Gb) while if I leave pc open for days (that I typically do) this increases considerable

    1. How I find that memory consumption is increasing? Through System Monitor tool of my KDE (4.11.5). There is a memory field in the Process tab and when I sort processes by memory firefox is always leading the race. Even if I do not do anything in firefox one can see the memory consumption increasing over time. A bit of fluctuations of course I was expecting as firefox keep reloading advertisements or content. But this is not the case as firefox always increases the memory consumption
    2. I am running firefox
      Code:
      firefox --version
      
      (process:4248): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
      Mozilla Firefox 27.0.1
    3. and few more info that might help
      Code:
      cat /etc/issue
      Welcome to openSUSE 13.1 "Bottle" - Kernel \r (\l).
      
      
       uname -a
      Linux hidden 3.11.10-7-desktop #1 SMP PREEMPT Mon Feb 3 09:41:24 UTC 2014 (750023e) x86_64 x86_64 x86_64 GNU/Linux


    did anyone have a similar problem?

    Regards
    Alex

  2. #2
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,734
    Blog Entries
    20

    Default Re: Is firefox constantly eating more and more memory?

    I don't really run any situation such as yours.
    But I have mostly moved to Chromium, it's just much quicker and lighter. For example, just logging in here, takes twice as long with Firefox.
    Firefox though does render some sites better for me though, some parts of ebay selling for example.
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  3. #3
    Join Date
    Jul 2008
    Location
    Planet Earth
    Posts
    195

    Default Re: Is firefox constantly eating more and more memory?

    Hi Alaios

    I note you are on Mozilla Firefox 27.0.1, the current version is 30. I would suggest upgrading to the latest version first.

  4. #4

    Default Re: Is firefox constantly eating more and more memory?

    Hi thanks will do (btw I have this problem almost one year now even though I kept updating firefox)

  5. #5
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Is firefox constantly eating more and more memory?

    On 2014-06-17 16:26, alaios wrote:
    >
    > Hi there,
    > I typically like to have multiple firefox windows open in my different
    > virtual desktops.
    > Typical case is that I leave on Friday with my computer locked and once
    > I am back on Monday I can see the firefox memory consumption being
    > hugely increased. After a fresh reboot firefox needs (for my number of
    > windows 1Gb) while if I leave pc open for days (that I typically do)
    > this increases considerable


    Well, I do not know if FF memory grows while doing nothing, but it
    certainly grows with time. Apparently FF can not free the memory it does
    not use, even if you close tabs; but eventually, those chunks are
    swapped out.

    I'd suggest that instead of locking your computer, hibernate it, unless
    you really need it running.

    A side effect of hibernating is that everything goes to swap, and if not
    actually needed, those chunks are not copied to actual RAM on restore.


    > - How I find that memory consumption is increasing? Through System
    > Monitor tool of my KDE (4.11.5).


    The command "top" in a terminal is better for this. Tapping 'f' allows
    you to add fields; I add the one for "swap", which I then move to the
    right of "SHR", and 'W' saves the config.

    Tapping 'M' sorts by memory usage. The interesting values are "USED",
    "RES" and "SHR". You will see that "VIRT" is huge for Firefox, but that
    memory is not really used, only reserved somehow.


    Eventually, I restart FF, after some days.


    > - I am running firefox
    > Code:
    > --------------------
    > firefox --version
    >
    > (process:4248): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
    > Mozilla Firefox 27.0.1
    >
    >
    > --------------------


    Same here, but with version 29.0.1 - which means that you need to update.


    --
    Cheers / Saludos,

    Carlos E. R.

    (from 13.1 x86_64 "Bottle" (Minas Tirith))

  6. #6

    Default Re: Is firefox constantly eating more and more memory?

    Quote Originally Posted by robin_listas View Post
    ....

    Well, I do not know if FF memory grows while doing nothing, but it
    certainly grows with time. Apparently FF can not free the memory it does
    not use, even if you close tabs; but eventually, those chunks are
    swapped out....
    Hi, can you comment a bit more on this? Why it can not free the memory it does not use? I guess that from software you can always allocate memory (like mallon in c) and then release it back.

    I also then guess that also other browsers would have very similar problems.

    Alex

  7. #7
    Join Date
    Jul 2008
    Location
    Planet Earth
    Posts
    195

    Default Re: Is firefox constantly eating more and more memory?

    I certainly think there is a bug here as this has popped up a few times in the forum, look at this post regarding Xorg Memory leakage and note FF using 2.4gb :

    https://forums.opensuse.org/showthre...74#post2624674

    What is your Xorg memory use and just out of curiosity what video driver are you using ?

    I'm personally using FF 31 beta and the Nvidia binary blob 340.17 (GTX 750 Ti) and have no issues.

  8. #8
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Is firefox constantly eating more and more memory?

    On 2014-06-18 07:06, alaios wrote:
    >
    > robin_listas;2649457 Wrote:
    >> ....
    >>
    >> Well, I do not know if FF memory grows while doing nothing, but it
    >> certainly grows with time. Apparently FF can not free the memory it does
    >> not use, even if you close tabs; but eventually, those chunks are
    >> swapped out....

    >
    > Hi, can you comment a bit more on this? Why it can not free the memory
    > it does not use? I guess that from software you can always allocate
    > memory (like mallon in c) and then release it back.


    This is speculation or somewhat educated guesses; I have seen comments
    about it before. If a program (or some types of programs, dunno)
    requests many chunks of memory, freeing one sitting in the middle does
    nothing practical because it can not be reused, it is too small. If
    several non-contiguous chunks are freed, the same happens.

    Some programs do their own memory management. They request a big chunk
    from the system, then they manage and track smaller chunks internally.
    Likewise, freeing chunks in the middle serves little, unless another
    chunk that fits inside is requested. But the program could track
    internally those chunks and reshuffle them. Some languages implemented
    this, I believe (seek "garbage collection", perhaps). Turbo Pascal did,
    somewhat.

    That's the basic idea.

    The solution would be to reshuffle those memory blocks, but that is not
    that easy, because pointers in the program point to the old sites. You
    need an intermediate indirection level, kept by some memory manager: you
    suspend the program, resort or unfragment memory, taking care of the
    intermediate indirection array, and then let the program continue. The
    pointers in the program point to the array, and these point to the new
    location, so that the program continues happily, knowing nothing, but
    memory has been actually freed.

    I do not know if someone/something/somelanguage applies this or similar
    trick. It could be done using the segment registers of the processor,
    but I was told that Linux uses a linear memory map model, so no.


    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)

  9. #9
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,314

    Default Re: Is firefox constantly eating more and more memory?

    You guys tried playing with Firefox's "about:memory" ?

    Regards, Paul

    2x Tumbleweed (Snapshot: 20191203) KDE Plasma 5
    2x Leap 15.1 KDE Plasma 5

  10. #10

    Default Re: Is firefox constantly eating more and more memory?

    On my computer Firefox is not a problem. I have only 3 GB of RAM but i can use Firefox with 5-8 tabs and other programs without lags.
    BTW, I'm waiting for FF 30 in 13.1 & Tumbleweed. When will it be upgraded?

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •