[Webkit-unassigned] [Bug 17534] Every XMLHttpRequest leaks memory, at least for Safari Activity window
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jun 28 02:11:45 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=17534
Brian Holt <brian.holt at samsung.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |brian.holt at samsung.com,
| |noel.vellemans at visionbms.co
| |m
--- Comment #16 from Brian Holt <brian.holt at samsung.com> 2013-06-28 02:13:40 PST ---
I have been investigating this leak in the context of WebKitGTK and have come to the conclusion that there is no leak and that any increase in the heap size due to XMLHttpRequests are because the garbage collector is not firing.
However, if garbage collection is forced by reloading the web page then all memory is recovered.
This chart from massif shows the heap profile for the attached test case, with 1000 XHRs (50MB), followed by a reload of the page, another 1000 XHRs and a final reload.
MB
57.75^ #
| :@ ::#
| :@:@ ::::#
| ::@:@:: ::@:::#
| @::::@:@: ::::@:::#
| @@@: ::@:@: :::::@:::#
| @@ @: ::@:@: @::::::@:::#
| @:@@ @: ::@:@: :@::::::@:::#
| @:@:@@ @: ::@:@: :::@::::::@:::#:
| ::@:@:@@ @: ::@:@: :::: :@::::::@:::#:
| @@: @:@:@@ @: ::@:@: ::: :: :@::::::@:::#:
| @@@: @:@:@@ @: ::@:@: :: : :: :@::::::@:::#:
| :::@@@: @:@:@@ @: ::@:@: ::: : :: :@::::::@:::#:
| @: :@@@: @:@:@@ @: ::@:@: ::::: : :: :@::::::@:::#::
| ::@: :@@@: @:@:@@ @: ::@:@: : :@: ::: : :: :@::::::@:::#::
| @@::@: :@@@: @:@:@@ @: ::@:@: : :::@: ::: : :: :@::::::@:::#::
| :@@::@: :@@@: @:@:@@ @: ::@:@: : ::: :@: ::: : :: :@::::::@:::#::
| :@@:@@::@: :@@@: @:@:@@ @: ::@:@: : ::::: :@: ::: : :: :@::::::@:::#::
| ::@ :@@::@: :@@@: @:@:@@ @: ::@:@: ::::::: :@: ::: : :: :@::::::@:::#::
| ::@ :@@::@: :@@@: @:@:@@ @: ::@:@: : ::::: :@: ::: : :: :@::::::@:::#::
0 +----------------------------------------------------------------------->GB
0 1.441
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list