Excessive memory usage with palemoon 8.0

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
Marcoevich

Re: Excessive memory usage with palemoon 8.0

Post by Marcoevich » 2011-12-16, 12:27

Hey Moonchild,

You might want to follow this thread on the offical subsonic forum: http://forum.subsonic.org/forum/viewtop ... f=2&t=8516

I hope they know what is causing this problem since the guys at mozilla aren't very active in their bugreport system ;)

Also, I would like you to test something out. Will you open that subsonic demo page for me and let it run for 8 hours or so?

I will also open up a new profile in Firefox and test it within there. To see what the memory usage does :P

What I want to know is: Is subsonic the cause, or does this happen only in combination with my addons?

Best regards,
Marcoevich

User avatar
Moonchild
Project founder
Project founder
Posts: 38821
Joined: 2011-08-28, 17:27
Location: Sweden

Re: Excessive memory usage with palemoon 8.0

Post by Moonchild » 2011-12-16, 15:05

Just started the demo page in FF (since I don't actively use it anyway) and minimized. I'll let it run for a bunch of hours and see what it does on my system, without add-ons etc.

if it happens on subsonic without addons then it tickles some kind of JS bug that Mozilla needs to look at. Until the bug is confirmed and flagged as "NEW" instead of "UNCONFIRMED", you can't expect a dev to look at it.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Marcoevich

Re: Excessive memory usage with palemoon 8.0

Post by Marcoevich » 2011-12-16, 15:15

It's probably one of my addons. I've been running a fresh palemoon install without addons in my VM. I do not see any huge increase in memory usage.

I'll start Firefox now and I will disable my addons one by one to see which one is the culprit. It could take a while before I report back to you since I have many addons to test.

Please let your subsonic demo run for a few more hours to check if Firefox really isn't the cause of this leak.

User avatar
Moonchild
Project founder
Project founder
Posts: 38821
Joined: 2011-08-28, 17:27
Location: Sweden

Re: Excessive memory usage with palemoon 8.0

Post by Moonchild » 2011-12-16, 17:42

2.5 hours later, total memory allocation is 100 MB, of which 37% is taken up by the safebrowsing database in memory -- that is having the page at "home" with constant refreshing album covers and playing music (muted).
I don't see a memory leak in FF without add-ons.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
satrow
Forum staff
Forum staff
Posts: 1936
Joined: 2011-09-08, 11:27

Re: Excessive memory usage with palemoon 8.0

Post by satrow » 2011-12-16, 18:15

I've been running the Subsonic demo page on a P4M laptop with 1GB RAM for 5 hours now; Pale Moon 8.0 with ABP and the pop-up add-on, Noscript, Pale Moon status bar and (disabled) SkipScreen.

Process explorer reports 175MB in the Private set, Working set = 81MB, I see no leak here either.

User avatar
Moonchild
Project founder
Project founder
Posts: 38821
Joined: 2011-08-28, 17:27
Location: Sweden

Re: Excessive memory usage with palemoon 8.0

Post by Moonchild » 2011-12-16, 18:35

I guess we can safely assume it's the combination with one of your add-ons causing this problem. Please do test this and let us know what comes out of that, since it may still be something for Mozilla to fix - if it's clear what causes this out of bounds allocation, it can be fixed before it's either exploited or something else causes the same result.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Marcoevich

Re: Excessive memory usage with palemoon 8.0

Post by Marcoevich » 2011-12-19, 12:25

Unfortunately, testing the addons won't go so fast as I had in mind :P

Sometimes, I disable an addon, and the excessive memory usage stays away. Then I enable the addon again to make sure the problem is that addon, and then the memory usage also stays away.....

I was thinking that maybe someone wants to help me out with this. Please put the extension folder in this link in your Palemoon profile folder to install all my extensions, so you can test for yourself: http://dl.dropbox.com/u/15584788/PalemoonExtensions.rar

Another thing,I am browsing now without subsonic since I have subsonic open in firefox all the time. But still my palemoon uses 2.0 gb of memory :(

Can you make anything out of this moonchild? My browser is again very slow at this moment. So I would like to know where this behavior is comming from :roll:

See:
Explicit Allocations
1,745.30 MB (100.0%) -- explicit
├──1,046.73 MB (59.97%) -- heap-unclassified
├────543.73 MB (31.15%) -- js
│ ├──133.08 MB (07.62%) -- compartment([System Principal], 0x33e9800)
│ │ ├───90.80 MB (05.20%) -- gc-heap
│ │ │ ├──38.68 MB (02.22%) -- arena-unused
│ │ │ ├──32.32 MB (01.85%) -- objects
│ │ │ ├──10.65 MB (00.61%) -- shapes
│ │ │ └───9.16 MB (00.52%) -- (4 omitted)
│ │ ├───20.75 MB (01.19%) -- object-slots
│ │ ├───12.21 MB (00.70%) -- (6 omitted)
│ │ └────9.31 MB (00.53%) -- mjit-code
│ ├──117.15 MB (06.71%) -- (54 omitted)
│ ├───84.84 MB (04.86%) -- compartment(https://secure.shared.live.com/_D/F$Live...)
│ │ ├──36.21 MB (02.07%) -- gc-heap
│ │ │ ├──32.45 MB (01.86%) -- objects
│ │ │ └───3.76 MB (00.22%) -- (5 omitted)
│ │ ├──34.20 MB (01.96%) -- string-chars
│ │ ├──11.94 MB (00.68%) -- object-slots
│ │ └───2.50 MB (00.14%) -- (6 omitted)
│ ├───46.55 MB (02.67%) -- gc-heap-chunk-dirty-unused
│ ├───38.75 MB (02.22%) -- compartment(http://secure.shared.live.com/_D/F$Live....)
│ │ ├──19.88 MB (01.14%) -- gc-heap
│ │ │ ├──16.80 MB (00.96%) -- objects
│ │ │ └───3.08 MB (00.18%) -- (5 omitted)
│ │ └──18.87 MB (01.08%) -- (8 omitted)
│ ├───19.50 MB (01.12%) -- compartment(http://####.dyndns.tv/mediafrontpage/...)
│ │ ├──18.18 MB (01.04%) -- gc-heap
│ │ │ ├──17.28 MB (00.99%) -- objects
│ │ │ └───0.91 MB (00.05%) -- (5 omitted)
│ │ └───1.31 MB (00.08%) -- (8 omitted)
│ ├───18.24 MB (01.05%) -- compartment(http://du101w.dub101.mail.live.com/)
│ │ ├───9.21 MB (00.53%) -- (8 omitted)
│ │ └───9.03 MB (00.52%) -- gc-heap
│ │ └──9.03 MB (00.52%) -- (6 omitted)
│ ├───13.38 MB (00.77%) -- compartment(http://####.no-ip.info:####/)
│ │ └──13.38 MB (00.77%) -- (9 omitted)
│ ├───13.26 MB (00.76%) -- compartment(https://www.facebook.com/dialog/oauth?ap...)
│ │ └──13.26 MB (00.76%) -- (9 omitted)
│ ├───13.21 MB (00.76%) -- compartment(https://iavans-external.sso.avans.nl/web...)
│ │ └──13.21 MB (00.76%) -- (8 omitted)
│ ├───12.99 MB (00.74%) -- compartment(atoms)
│ │ ├───8.91 MB (00.51%) -- string-chars
│ │ └───4.07 MB (00.23%) -- (1 omitted)
│ ├───12.91 MB (00.74%) -- compartment(http://localhost/mediafrontpage/)
│ │ ├──10.87 MB (00.62%) -- gc-heap
│ │ │ └──10.87 MB (00.62%) -- (6 omitted)
│ │ └───2.05 MB (00.12%) -- (8 omitted)
│ ├───10.48 MB (00.60%) -- compartment(http://www.google.nl/search?q=github+clo...)
│ │ └──10.48 MB (00.60%) -- (9 omitted)
│ └────9.40 MB (00.54%) -- compartment(http://code.google.com/p/modwsgi/)
│ └──9.40 MB (00.54%) -- (9 omitted)
├─────58.66 MB (03.36%) -- layout
│ ├──38.81 MB (02.22%) -- styledata
│ └──19.85 MB (01.14%) -- arenas
├─────46.77 MB (02.68%) -- storage
│ └──46.77 MB (02.68%) -- sqlite
│ ├──28.42 MB (01.63%) -- urlclassifier3.sqlite
│ │ ├──28.34 MB (01.62%) -- cache-used
│ │ └───0.08 MB (00.00%) -- (2 omitted)
│ ├───9.19 MB (00.53%) -- (13 omitted)
│ └───9.16 MB (00.52%) -- lazarus.sqlite
│ ├──9.13 MB (00.52%) -- cache-used
│ └──0.03 MB (00.00%) -- (2 omitted)
├─────33.61 MB (01.93%) -- images
│ ├──33.05 MB (01.89%) -- content
│ │ ├──33.04 MB (01.89%) -- used
│ │ │ ├──17.11 MB (00.98%) -- uncompressed-heap
│ │ │ ├──15.93 MB (00.91%) -- raw
│ │ │ └───0.00 MB (00.00%) -- (1 omitted)
│ │ └───0.00 MB (00.00%) -- (1 omitted)
│ └───0.57 MB (00.03%) -- (1 omitted)
├──────9.26 MB (00.53%) -- dom
└──────6.54 MB (00.37%) -- (3 omitted)

Other Measurements
10.54 MB -- canvas-2d-pixel-bytes
16.20 MB -- gfx-d2d-surfacecache
25.55 MB -- gfx-d2d-surfacevram
17.87 MB -- gfx-surface-image
0.00 MB -- gfx-surface-win32
1,688.10 MB -- heap-allocated
1,848.05 MB -- heap-committed
2.71 MB -- heap-dirty
196.90 MB -- heap-unallocated
2 -- js-compartments-system
66 -- js-compartments-user
317.00 MB -- js-gc-heap
70.21 MB -- js-gc-heap-arena-unused
0.00 MB -- js-gc-heap-chunk-clean-unused
46.55 MB -- js-gc-heap-chunk-dirty-unused
36.83% -- js-gc-heap-unused-fraction
2,015.80 MB -- private
2,071.57 MB -- resident
1.34 MB -- shmem-allocated
1.34 MB -- shmem-mapped
2,463.22 MB -- vsize

User avatar
Moonchild
Project founder
Project founder
Posts: 38821
Joined: 2011-08-28, 17:27
Location: Sweden

Re: Excessive memory usage with palemoon 8.0

Post by Moonchild » 2011-12-19, 12:48

All I can say it's one of your add-ons :P just dropping the add-ons in someone else's browser is not a way to reproduce the problem, either. "heap-unclassified" (the 1 GB allocation in your report) means that Pale Moon also doesn't know what content container the allocated memory belongs to, so that doesn't help.

What I can suggest is making a brand new profile. No add-ons (except the status bar, of course). Then add your add-ons one by one to this new profile until you hit the memory usage problem (make sure to give each one ample time). The last one added in that case is the culprit. Solution: find an alternative add-on for the culprit.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Marcoevich

Re: Excessive memory usage with palemoon 8.0

Post by Marcoevich » 2011-12-19, 13:55

Thx Moonchild, will try that :)

I'll let you know if I found the problematic addon.