Closed Bug 39238 Opened 25 years ago Closed 17 years ago

leaks and slowdown when reloading about:blank

Categories

(Core :: DOM: Core & HTML, defect, P2)

defect

Tracking

()

RESOLVED WORKSFORME
Future

People

(Reporter: Marko.Macek, Unassigned)

Details

(Keywords: dom0, memory-leak, perf, Whiteboard: [nsbeta3-])

Attachments

(1 file)

if I enter "about:blank" into location bar and keep pressing Enter, mozilla will leak memory and become slower and slower. Reproduced on linux and win98. (nightly builds) On linux profiled with jprof: It get's slower because JS_GC takes longer and longer. If I remove calls to JC_GC in SetNewDocument and SetupNewViewer, the speed becomes constant (and 25% faster).
Keywords: perf
Confirmed in Windows 2000. Although the slowdown is only noticeable because of the elapsed time displayed in the status bar. The memory footprint of Mozilla was increased by 4MB after pressing ENTER more than 200 times. I'm sure this is a dupe, but I do not know where.
Status: UNCONFIRMED → NEW
Ever confirmed: true
On Linux it is quite easy for me to get to several seconds per load of about: blank. GC seems to be noticeably slower on Linux than under Win98 on the same machine.
NS 4 look better whitout this thing now it looks like IE
This bug is mentioned as a variant of bug 42321, which has recently been reassigned from JS Engine to DOM Level 0. Would also like to redirect this to DOM Level 0 to be consistent -
Assignee: rogerl → jst
Component: Javascript Engine → DOM Level 0
QA Contact: pschwartau → desale
Nominating for nsbeta3.
Status: NEW → ASSIGNED
Priority: P3 → P2
Target Milestone: --- → M18
Keywords: nsbeta3
I may have a fix for this leak... I need to check to see if it's fixed in my tree. (It might have been the DOCTYPE node leak...) That leak would explain it taking more time in GC, since it was a leaked root that left lots more JS objects around...
Keywords: mlk
Did you see lots of leaks according to leak logging (setting XPCOM_MEM_LEAK_LOG = 1), or were these leaks things that were held too long and all cleaned up at the end? I leak a little image and network stuff when loading about:blank, but that seems to be it. Were you seeing more? (Or are those XPCOM objects holding on to lots of other data?)
Marking nsbeta3- for now, given David's comment about leaking only a few objects on about:blank load. If you want us to re-evaluate based on new information, please remove the nsbeta3- marker from the status whiteboard and add a comment. Thanks!
Whiteboard: [nsbeta3-]
I am still seeing a slight slowdown and a little leaking memory.
The leaks we're seeing here could be leaking other objects. If we're aware of leaks I'd like to see them persued. asking for re-consideration.
Whiteboard: [nsbeta3-]
Marking nsbeta3- for now.
Whiteboard: [nsbeta3-][egk]
Whiteboard: [nsbeta3-][egk] → [nsbeta3-]
Removing [egk].
This should be a lot better by now, can someone actually still reproduce the slowdown by reloading about:blank?
I don't have any time to spend on this untill sometime later, moving to Future.
Target Milestone: M18 → Future
Keywords: dom0
Blocks: 92580
No longer blocks: 92580
Mass removing self from CC list.
Now I feel sumb because I have to add back. Sorry for the spam.
I was investigating a similar problem today. Reloading an iframe with setInterval causes Mozilla 1.1 Build 20020826 to leak a few K of memory every couple of seconds on Windows and Linux. After creating a reproducible test case (see Attachment #101171 [details]), I downloded Mozilla 1.2 Build 2002093010 for Windows and used the test case. Build 2002093010 does not exhibit the memory leak I saw with Build 20020826.
Mass-reassigning bugs to dom_bugs@netscape.com
Assignee: jst → dom_bugs
Status: ASSIGNED → NEW
Reloading leaks memory - bug 81446. Possibly related: File | Quit takes a huge amount of time (exit or shutdown slow) - bug 39742.
Is anyone still able to reproduce this bug? Firefox 2 and Firefox 3 don't even seem to allow the user to reload about:blank, so what product(s) does this bug still apply to?
(In reply to comment #21) > Is anyone still able to reproduce this bug? Firefox 2 and Firefox 3 don't even > seem to allow the user to reload about:blank, so what product(s) does this bug > still apply to? Given that you can't reload about:blank anymore, I'd say this is INVALID.
I was able to test with a SeaMonkey 2 trunk build on Windows XP. After loading about:blank, I was able to reload by pressing Ctrl-R. After several minutes of holding down Ctrl-R, memory use went up and down a little, but didn't continually rise as would be the case with a memory leak. This one is WFM.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: