[Webkit-unassigned] [Bug 40605] New: Excessive memory using when communicating with a worker
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jun 14 19:51:42 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=40605
Summary: Excessive memory using when communicating with a
worker
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh Intel
OS/Version: Mac OS X 10.6
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: skoom at me.com
Created an attachment (id=58742)
--> (https://bugs.webkit.org/attachment.cgi?id=58742)
index.html and worker.js to demonstrate the issue
using 200,000 'lorem' strings I did a few tests and it looks like simply sending messages between a worker and the thing that created it uses a massive amount of ram, despite the messages not being stored anywhere in JS code.
Below are the tests and the memory usage I got from Activity Monitor. I have also attached the code that can replace this.
sending messages to the worker only
real memory size: 336mb
virtual memory size: 5.02mb
private memory size: 70.1mb
virtual private memory: 309mb
sending messages to the worker and the worker sending the same messages back
real memory size: 533mb
virtual memory size: 5.2gb
private memory size: 112mb
virtual private memory: 663mb
adding strings to an array
real memory size: 103mb
virtual memory size: 4.79gb
private memory size: 58mb
virtual private memory: 202mb
adding strings to an object
real memory size: 128mb
virtual memory size: 4.82gb
private memory size: 87mb
virtual private memory: 262mb
--
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