[Webkit-unassigned] [Bug 30331] New: Page with a form, five multi-line fields, large strings, Webkit RSIZE grows and grows
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Oct 13 05:07:14 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=30331
Summary: Page with a form, five multi-line fields, large
strings, Webkit RSIZE grows and grows
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh Intel
OS/Version: Mac OS X 10.6
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Forms
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: joswig at lisp.de
Hi,
I am using Webkit, a nightly build. The process listing systems says 'Safari'
(does it then really use Safari?).
As an debugging example I have written a page with form which has five
multi-line fields and a submit button. The fields have a default content of
random strings of about 2 million characters each. So the page size is roughly
five * 2 million characters. This is also the size on disk, if I save the form
from the browser. The form page is dynamically generated by the server (no
static text file). Transfer is HTTP 1.1.
After about ten submissions of this form the memory footprint of Webkit goes in
the direction of 1 GB and still grows. Both virtual and physical memory
allocations of Webkit are in that range (the allocated physical memory is only
a little smaller). My Macbook Pro (3 GB RAM, Mac OS X 10.6.1) eventually starts
swapping and gets very slow during swapping.
I don't know if the memory ever gets freed, from what I see the memory size of
Webkit grows and grows. But even if it gets freed in some distant future, I
would then prefer Webkit to release memory much more aggressively. So either
this is a memory leak, or Webkit is not freeing/reusing memory early enough.
The page is about ten MB in size, submitting it ten times should not bring the
Webkit memory usage into the 1 GB RAM range.
If somebody would like to have a look at it, I'd be happy to setup an example
page.
PID COMMAND %CPU TIME #TH #WQ
#PORT #MREG RPRVT RSHRD RSIZE VPRVT VSIZE
0 submissions 66046 Safari 0.2 00:01.51 9 2 130 334
28M+ 23M 67M+ 203M 4858M
1 submission 66046 Safari 12.8 00:17.57 9 2 136- 433
306M- 24M 413M 513M 5289M
2 submissions 66046 Safari 14.1 00:33.96 9 2 139 475
429M 24M 591M 647M 5473M
3 submissions 66046 Safari 1.6 00:50.48 10 3 145+ 505
454M 24M 719M- 762M 5604M
...
You can see that RSIZE is after three form submissions already at 719M.
Regards,
Rainer Joswig
--
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