Closed
Bug 808205
Opened 13 years ago
Closed 13 years ago
Jetpack's traits.js is 15mb memory for each instance
Categories
(Add-on SDK Graveyard :: General, defect, P1)
Add-on SDK Graveyard
General
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 724632
1.15
People
(Reporter: dietrich, Assigned: evold)
References
Details
(Whiteboard: [MemShrink:P3])
Attachments
(1 file)
|
49.81 KB,
image/png
|
Details |
see screenshot
| Reporter | ||
Updated•13 years ago
|
Whiteboard: [memshrink]
Comment 1•13 years ago
|
||
cc'ing myself, gozala and Nicholas. While this isn;t a leak, the use of traits seems to cause egregious amounts of memory allocation. Traits is deprecated and has a logical successor so if it is causing issues we can bump the priority of porting various apis to use heritage.
Also, if heritage uses less, the same or more memory, would be good to know that as well.
Comment 2•13 years ago
|
||
BTW, you can copy and paste the contents of about:memory; it's just text.
Comment 3•13 years ago
|
||
I looked for any trait.js usage in Aurora on OS X, the worst offender was a couple of MB:
──2,942,184 B (00.30%) -- compartment([System Principal], resource://transmission-web-helper-at-canuckistani-dot-ca/api-utils/lib/traits.js (from: resource://gre/modules/XPIProvider.jsm -> jar:file:///Users/jeff/Library/Application%20Support/Firefox/Profiles/b49h24eg.default/extensions/transmission-web-helper@canuckistani.ca.xpi!/bootstrap.js -> resource://transmission-web-helper-at-canuckistani-dot-ca/api-utils/lib/loader.js:143))
I'm betting this is related to that add-on's use of the context-menu module, which has been reimplemented on master.
Dietrich, anything unusual about your setup ( running the app for ages, etc ) that might allow these compartments to accrue tons of RAM?
I installed memchaser and started logging, the memory usage of that compartment is currently:
─678,328 B (00.07%) -- compartment([System Principal], resource://memchaser-at-quality-dot-mozilla-dot-org/api-utils/lib/traits.js (from: resource://memchaser-at-quality-dot-mozilla-dot-org/api-utils/lib/loader.js:137))
Logging is enabled, and perhaps there is a steady memory leak as logging continues?
Updated•13 years ago
|
Whiteboard: [memshrink] → [MemShrink]
Comment 4•13 years ago
|
||
> I installed memchaser and started logging, the memory usage of that compartment is
> currently:
We've had so many problems with MemChaser itself leaking memory (either directly or via the SDK) that I can't recommend using MemChaser for any sort of testing. I recommend using your system's equivalent of top instead.
Updated•13 years ago
|
Summary: traits.js is 15mb memory for each instance → JetPack's traits.js is 15mb memory for each instance
Updated•13 years ago
|
Summary: JetPack's traits.js is 15mb memory for each instance → Jetpack's traits.js is 15mb memory for each instance
Updated•13 years ago
|
Whiteboard: [MemShrink] → [MemShrink:P3]
Priority: -- → P1
Assignee: nobody → evold
| Assignee | ||
Updated•13 years ago
|
Depends on: sdk-kill-traits
| Assignee | ||
Comment 5•13 years ago
|
||
I wonder if this was related to bug 833783
OS: Mac OS X → All
Hardware: x86 → All
| Assignee | ||
Updated•13 years ago
|
Target Milestone: --- → 1.15
| Assignee | ||
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•