Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-2 OS-All Area-Misc
New issue 9765 by mthuurne: Unlimited memory consumption with XMLHttpRequest
http://code.google.com/p/chromium/issues/detail?id=9765
Chrome Version : 1.0.154.53 (Officiƫle build 11798)
URLs (if applicable) :
Other browsers tested: Safari, Konqueror, Firefox
Add OK or FAIL after other browsers where you have tested this issue:
Safari 4: OK
Firefox 3.x: OK
IE 7:
IE 8:
What steps will reproduce the problem?
1. Start a tool to monitor memory usage of a process (for example, Process
Explorer)
2. Load attached "TableRefresh.html" in a Chrome tab
3. Observe the memory consumption (Working Set) rising every second
What is the expected result?
Memory usage should stay at the same level, since the document loaded with
XMLHttpRequest replaces itself every time.
What happens instead?
Memory usage keeps rising. It will keep rising at least up to 1GB, at which
point I decided to abort the process. I don't know whether it is a leak or
fragmentation or an unexpected reference somewhere that prevents the memory
being reused.
Please provide any additional information below. Attach a screenshot if
possible.
I let "TableRefresh.html" and "table.xml" be served by an Apache server on
my local development machine. Any web server should work, as long as
"table.xml" is served with an XML mime type (text/xml or
application/xhtml+xml).
The speed at which memory usage increases is determined by the amount of
data loaded, see attached "tablegen.py" to generate different size tables.
If you comment out the entire contents of the "if (req.status == 200)"
block, memory use still increases with every request, although much slower
than when replacing the table. This suggests that the XMLHttpRequest itself
is the cause of at least some the memory consumption.
I tried explicitly deleting "req" and "req.onreadystatechange" when the
request is done, to help garbage collection by breaking reference cycles.
This did not make a difference.
Konqueror 4.2.2 on Linux has this same issue. Safari 4 beta on Windows does
not. Also in Firefox 3 on Windows the issue does not occur. The test case
does not work in IE7 because that browser lacks document.importNode() and I
do not have IE8 installed.
Attachments:
TableRefresh.html 943 bytes
table.xml 17.7 KB
tablegen.py 373 bytes
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---