Pale Moon using too much ram?

Support and discussions for the x86/x64 Linux version of Pale Moon and specific Linux distribution questions related to the browser.

Moderator: trava90

Forum rules
If your question is about general use of the browser and not specific to Linux, then please use the General Support board.
Locked
Xemnius

Pale Moon using too much ram?

Post by Xemnius » 2016-02-27, 04:14

Currently running Linux Mint 17.3 and PM 26.1.1. I've had PM running for 9 hours and it's using 1.3GB of ram just for 3 tabs. I only have uBlock Origin installed and gstreamer enabled in the about:config. Any help regarding this issue would be very much appreciated. If you need more info, I'll be happy to elaborate. Thank you.

ipsirc

Re: Pale Moon using too much ram?

Post by ipsirc » 2016-02-28, 01:26

I had also notice incremental memory leaking with the default binary build. When i recompiled with --enable-jemalloc, this problem has gone. It's worth a try!

Kunagi7

Re: Pale Moon using too much ram?

Post by Kunagi7 » 2016-02-29, 23:28

Same here, just used palemoon 5 hours and with 1 tab (inoreader) opened it consumes 1.4gb, its 400 more mb than 25.8.1 under the same conditions.

User avatar
trava90
Contributing developer
Contributing developer
Posts: 1629
Joined: 2013-05-20, 18:19
Location: Earth
Contact:

Re: Pale Moon using too much ram?

Post by trava90 » 2016-03-04, 16:45

Beginning with v26 the binaries released by us are using the system allocator instead of jemalloc. As a result, the memory usage will be some higher, but it also improves the performance of the browser. So far in all my testing I have not encountered any "runaway" amounts of memory being used, but will keep an eye on it.

Xemnius

Re: Pale Moon using too much ram?

Post by Xemnius » 2016-03-11, 05:11

trava90 wrote:Beginning with v26 the binaries released by us are using the system allocator instead of jemalloc. As a result, the memory usage will be some higher, but it also improves the performance of the browser. So far in all my testing I have not encountered any "runaway" amounts of memory being used, but will keep an eye on it.
Really? You're not experiencing any kind of leak? I currently only have 4 tabs open. Email, Spotify, Imgur and this forum. I've had Pale Moon running for 8 hours give or take and it starts with a reasonable amount of RAM usage and then it just sky rockets after a few hours. It's currently using a total of 2.3GB's of RAM, for only 4 tabs... If you need any more information regarding this issue I'll be more then happy to give it to you, because I would like to see this issue fixed sooner or later.

Thank you for your time. :)

User avatar
trava90
Contributing developer
Contributing developer
Posts: 1629
Joined: 2013-05-20, 18:19
Location: Earth
Contact:

Re: Pale Moon using too much ram?

Post by trava90 » 2016-03-12, 16:22

Xemnius wrote:I've had Pale Moon running for 8 hours give or take and it starts with a reasonable amount of RAM usage and then it just sky rockets after a few hours. It's currently using a total of 2.3GB's of RAM, for only 4 tabs...
I did a test on my wife's Mint 17.3 machine with Pale Moon 26.1.1. I'd been online for about three hours and had over 40 tabs open (Gmail, Imgur, several Youtube, a couple forums, blogs, etc). I left the browser and all tabs open overnight, then spent another hour or so online today and the memory usage never exceeded 1.7GB. I'll continue to investigate.

Xemnius

Re: Pale Moon using too much ram?

Post by Xemnius » 2016-03-12, 20:29

trava90 wrote:I did a test on my wife's Mint 17.3 machine with Pale Moon 26.1.1. I'd been online for about three hours and had over 40 tabs open (Gmail, Imgur, several Youtube, a couple forums, blogs, etc). I left the browser and all tabs open overnight, then spent another hour or so online today and the memory usage never exceeded 1.7GB. I'll continue to investigate.
Do you have any extensions running? I'm running uBlock Origin, Self-Destructing Cookies and a 3.7.1 Greasemonkey fork. I noticed that uBO alone added 100MB from the get go of loading the browser with no new tabs. So maybe there's something going on there? I don't know. You've got 40 tabs only using 1.7GB and I've got 4 that's using 1GB currently because I restarted my browser. That's wild.

Thanks for your reply. :)

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 29330
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: Pale Moon using too much ram?

Post by Moonchild » 2016-03-13, 11:25

It may be a good idea for you Linux folks to do a comparison run with different browser builds. That way we can get some information on if using the system allocator is problematic or not, if it's a global problem or distro specific, etc.

The browser's memory usage is, because of its design, rather atypical, and it's very well possible that the system allocator of some installations doesn't like it and won't release memory properly (although it should). Like with all use of system libraries, there's an inherent risk that mixing code origins causes problems. I'd prefer to keep using the system allocator, since it's faster, but if it causes too much memory use, then switching back to the known-good (and recently improved) in-tree allocator is the best course of action (and leaving other allocator use to contributed builds or distro-specific rebuilds for distros that have an allocator in use that Pale Moon plays well with).
"Son, in life you do not fight battles because you expect to win, you fight them merely because they need to be fought." -- Snagglepuss
Image

User avatar
trava90
Contributing developer
Contributing developer
Posts: 1629
Joined: 2013-05-20, 18:19
Location: Earth
Contact:

Re: Pale Moon using too much ram?

Post by trava90 » 2016-03-13, 14:41

Xemnius wrote:Do you have any extensions running?
The only extensions my wife has installed are Adblock Latitude, Blue Moon Linux, DownTheMall!, Encrypted Web, History Submenus II, Noscript, Pale Moon Commander, Private Tab & Stylish.

I'm going to send you a new build of 26.1.1 later today that uses the improved in-tree allocator as mentioned by Moonchild above. If you could test that build and report back that would be great!

User avatar
Moonraker
Board Warrior
Board Warrior
Posts: 1696
Joined: 2015-09-30, 23:02
Location: uk.

Re: Pale Moon using too much ram?

Post by Moonraker » 2016-03-13, 14:54

Not sure if this would be relevant or not.Would it be correct to say that PM runs its cache in ram.?.I know that with firefox there were some about:config tweaks which would make ff run its cache in ram instead of by disk.
Maybe this may account for some excess ram usage.
Xenial puppy linux 32-bit.

Pale moon 29.0.0.

User avatar
trava90
Contributing developer
Contributing developer
Posts: 1629
Joined: 2013-05-20, 18:19
Location: Earth
Contact:

Re: Pale Moon using too much ram?

Post by trava90 » 2016-03-13, 16:00

Pale Moon can be configured to use a RAM cache, but doesn't do it by default.

Agent Orange

Re: Pale Moon using too much ram?

Post by Agent Orange » 2016-03-22, 14:38

More data for the pool:

Experiencing this on PM 26.1.1, Mint 17.3. Pale Moon gradually uses more and more RAM. After ~1hour of browsing, the main thread (not counting plugins) was using 937MB of RAM.

Only add-ons are ABL 3.5.0b1, Encrypted Web 5.1.2, and Greasemonkey 3.7.

User avatar
trava90
Contributing developer
Contributing developer
Posts: 1629
Joined: 2013-05-20, 18:19
Location: Earth
Contact:

Re: Pale Moon using too much ram?

Post by trava90 » 2016-03-22, 17:05

Pale Moon 26.2 will be using the jemalloc memory allocator instead of the system allocator. That should resolve the increasing memory usage.

Locked