Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Is there a way to prevent WebKit from eating the RAM?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is there a way to prevent WebKit from eating the RAM?



Problem:
--------

When I use [[NSMutableAttributedString alloc] initWithHTML:options:documentAttributes:], WebKit is apparently eating a huge amount of memory if I call this method a lot of times (like 2,000 with raw HTML data from 100 bytes to 20 KB).

Either there is a memory leak or a large amount of data is cached.

It's not a leak from other parts of the code, I checked that (the other parts "only" leak 45744 bytes according to leaks(1)).

I also tried multiple varations of WebPreferences settings (Use Page Cache, Cache Model) for the options but the RAM hunger is still there.

To define eating: Application starts with RSIZE = 10 MB and ends up with RSIZE = 813 MB.

Question:
---------

Is there a way to prevent this undesired behavior of WebKit?


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webkitsdk-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.