[meta] Firefox keeps too many files (ports) open
Categories
(Core :: XPCOM, defect)
Tracking
()
People
(Reporter: whimboo, Unassigned)
References
(Depends on 3 open bugs)
Details
(Keywords: meta, perf:resource-use)
Yesterday I have seen that my Firefox DevEdition had about 148k files/ports open. The process was running for about 2 weeks. When checking with the Activity Monitor a couple of open files were visible that were related to tabs that I've closed a couple of days ago.
I'm going to file individual bugs given that there might be quite a lot of different components that need a fix here.
Reporter | ||
Updated•3 years ago
|
Comment 1•3 years ago
|
||
(In reply to Henrik Skupin (:whimboo) [⌚️UTC+1] from comment #0)
a couple of open files were visible that were related to tabs that I've closed a couple of days ago.
Were these tabs visible as ghost windows in about:memory?
Updated•3 years ago
|
Reporter | ||
Comment 2•3 years ago
|
||
(In reply to Florian Quèze [:florian] from comment #1)
a couple of open files were visible that were related to tabs that I've closed a couple of days ago.
Were these tabs visible as ghost windows in about:memory?
I cannot say because I had to restart Firefox. Once I'm in this situation again I'll check that and file new bugs with details.
Comment 3•3 years ago
|
||
Bug 1723111 looks like a Python exception, and it's 24 = EMFILE
= Too many open files
, not 23 = ENFILE
= Too many open files in system
; so, it would be a problem with that Python process running into its own fd limit and not anything that could have been caused by fd use in Firefox itself.
Comment 4•3 years ago
|
||
Moving this to XPCOM, not because the cause lies there but if we wanted to monitor filehandle usage, it would probably start from there.
Reporter | ||
Comment 5•3 years ago
|
||
While I was trying to get more details of leaking ports on MacOS with the help of @mstange I noticed that the command lsmp
is currently broken on MacOS Monterey and doesn't allow filtering per process (-p option). Markus filed a bug against Apple but I don't have the reference. Means I might have to wait with further analysis.
Reporter | ||
Comment 6•3 years ago
|
||
(In reply to Henrik Skupin (:whimboo) [⌚️UTC+1] from comment #5)
While I was trying to get more details of leaking ports on MacOS with the help of @mstange I noticed that the command
lsmp
is currently broken on MacOS Monterey and doesn't allow filtering per process (-p option). Markus filed a bug against Apple but I don't have the reference.
This is actually the reference: FB9957317.
Updated•2 years ago
|
Description
•