Hi,<br><br>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. <br>
<br>After every page load I clear the cache-<br><br> QWebSettings *gs = QWebSettings::globalSettings( );<br> gs->setMaximumPagesInCache( 0);<br> gs->setObjectCacheCapacities( 0, 0, 0);<br> gs->setOfflineStorageDefaultQuota( 0);<br>
gs->setOfflineWebApplicationCacheQuota( 0);<br> gs->clearIconDatabase( );<br> gs->clearMemoryCaches( );<br><br>However the memory foot print of the domtraversal example keeps on increasing as I keep browsing the pages.<br>
<br>I am using qt-4.6.1 on Ubuntu/RHEL linux.<br><br>Can anyone please let me know how to prevent the memory usage from going up with every request.<br><br>Thanks,<br>Tarandeep<br>PS I can send pmap output of the process if one is interested to see<br>