Hi,

I wonder if some of you could  help me with this. The following request 
increases memory usage on each request:

<html>
<body>
<script type="text/javascript">
var xmlHttp=new XMLHttpRequest();

var i = 0;
function test() {
        xmlHttp.open("GET","mem_test.htm?" + (i++), false);
        xmlHttp.send(null);
    setTimeout(test,10);
}

test();
</script>
Test
</body>
</html>

If i remove "i++" the memory usage is constant. Also valgrind reports no 
significant leaks. This leads me to beleve that it is cached somehow. 

I have tried the following:

// Disable forward/back list
list = webkit_web_view_get_back_forward_list(web_view);
gint limit = webkit_web_back_forward_list_get_limit(list);
webkit_web_back_forward_list_set_limit(list, 0);

// Disable caches
WebCore::cache()->setDisabled(true);
WebCore::cache()->setCapacities(0, 0, 0);
WebCore::cache()->setDeadDecodedDataDeletionInterval(0);
WebCore::pageCache()->setCapacity(0);

but it doesn't seem to help at all.

Is there anything else I should try?

It is really important that I get It to stop using memory even if it is 
cache since it makes it much more difficult to find real leaks. I'm quite 
sure that there is one since the system I'm running WebKit on stops 
working after a couple of days.

I'm using GTK WebKit  r48290 and GtkLauncher from subversion running on 
linux.

Thanks in advance

/ John
_______________________________________________
webkit-help mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help

Reply via email to