[webkit-qt] webkit- Memory consumption increases per page load
Tarandeep Singh
tarandeep at gmail.com
Wed May 19 13:17:29 PDT 2010
Hi,
I am trying to use webkit (QT) as a server and render pages as and when url
request comes. However, I found that the memory consumption of webkit
process increases with every (different) page load. Fearing that there could
be some problem in my code, I tried the domtraversal example that comes
with qt.
After every page load I clear the cache-
QWebSettings *gs = QWebSettings::globalSettings( );
gs->setMaximumPagesInCache( 0);
gs->setObjectCacheCapacities( 0, 0, 0);
gs->setOfflineStorageDefaultQuota( 0);
gs->setOfflineWebApplicationCacheQuota( 0);
gs->clearIconDatabase( );
gs->clearMemoryCaches( );
However the memory foot print of the domtraversal example keeps on
increasing as I keep browsing the pages.
I am using qt-4.6.1 on Ubuntu/RHEL linux.
Can anyone please let me know how to prevent the memory usage from going up
with every request.
Thanks,
Tarandeep
PS I can send pmap output of the process if one is interested to see
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20100519/a6292ffb/attachment.html>
More information about the webkit-qt
mailing list