[Webkit-unassigned] [Bug 61863] EventSource has a memory leak

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 1 08:42:26 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=61863





--- Comment #3 from goberman at msn.com  2011-06-01 08:42:26 PST ---
This is yet another problem with EventSource. 
My browser based application connects to the Java server to receive financial data. The volume of data may be high with users receiving hundreds thousands updates from the server throughout the day. I currently use XHR to push data from the server to the client, however it requires periodic disconnect and I would like to replace it with something that does not create a memory leak/ does not require disconnects (unfortunately multipart/x-mixed-replace is not supported in Chrome).

I was surprised to find out that EventSource has a memory leak. I wrote a simple Java Server/ JavaScript client program to demonstrate the issue.

What steps will reproduce the problem?
1. Run the server in Tomcat (use the latest Tomcat 7). You will need to add Java file test.WebFrameworkServletEventSource. Add StreamingEventSourceTest.html as a web resource.
2. Open http://localhost/Test/web/StreamingEventSourceTest.html in Chrome and press "test". It should connect to the server and generate about 300 messages per second.
3. Now open task manager and watch memory for Chrome. It steadily grows at about 100K per second. It will allocate hundreds of thousands megabytes of memory if left to run for hours.

What is the expected result?
Did not expect memory to grow at all.

What happens instead?
Nasty memory leak.

-- 
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