Closed Bug 1531744 Opened 6 years ago Closed 5 years ago

Slack memory usage grows over 1gb

Categories

(Web Compatibility :: Site Reports, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sphilp, Unassigned, NeedInfo)

References

(Blocks 1 open bug, )

Details

Attachments

(3 files)

Possibly related to bug 1426248. I noticed in about:performance and then in about:memory that Slack sometimes skyrockets in it's memory usage.

When the tab is relatively new, Slack uses around 100-150mb on my system (2018 mbp). I keep our Mozilla Slack running as a pinned tab basically 24/7. I'm unclear how to reproduce other than leave it open for several hours, but I've seen it over 1gb of memory a few times now. See the screenshot. Putting this in GC because of the size of the GC heap, may be unrelated :)

Let me know if there's anything more I can provide and I'll do that next time I notice the issue.

(In reply to Stuart Philp :sphilp from comment #0)
Can you try clicking "Minimize memory usage" in about:memory when this happens? If the memory use is not reduce then it suggests it's a problem with slack.

Slack has a reputation for very high memory usage in the browser. I believe this happens for other browsers too suggesting it's their leak/usage and not ours.

NI for Stuart to test the "Minimise memory usage" to see if that helps.

Flags: needinfo?(sphilp)
Blocks: GCScheduling
Priority: -- → P3
Blocks: 1533449
No longer blocks: GCScheduling
Attached image beforeminimize.png
Attached image afterminimize.png

It's showing 4.24gb in about:performance and about 3gb in about:memory as of right now. I attempted "minimize memory usage" and it doesn't appear to have made too much of a difference, see before and after screenshots. Sounds like more of a partner/outreach thing.

Flags: needinfo?(sphilp)

We can find a contact, but do we have anything more actionable to report to them beyond "this site uses a lot of memory"?

Do you have any suggestions Paul? If there is something useful I can do to hand over to slack let me know.

Flags: needinfo?(pbone)

There's a memory profiler within devtools, The UI is a little confusing I'll admit, but there may be some guides online about how to use it.

Because you did "Minimise" and nothing changed that means that it's not a GC thing: There's no way the GC can free memory if the program (slack) is holding references to it.

Component: JavaScript: GC → Other
Flags: needinfo?(pbone)
Priority: P3 → --
Product: Core → External Software Affecting Firefox

The priority flag is not set for this bug.
:marco, could you have a look please?

Flags: needinfo?(mcastelluccio)

"External Softare Affecting Firefox" is for external native software injecting into Firefox.

Component: Other → Desktop
Flags: needinfo?(mcastelluccio)
Product: External Software Affecting Firefox → Web Compatibility
Priority: -- → P3

Mike, this doesn't look like a bug in Firefox -- it appears to be leaks in the application that would affect all browsers.
Perhaps Slack can be notified of this?

Flags: needinfo?(mike)
Flags: needinfo?(miket)

Whoops, sorry for the delay. I've reached out to a contact at Slack trying to find the right person we can talk to.

Flags: needinfo?(miket)

I received a reply from my contact and they said that they've re-written the application in such a way that this shouldn't be happening anymore. Let's close.

Please re-open if this isn't the case.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: