Summary: | konqueror excessive memory usage | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | cb-kde |
Component: | general | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | esigra |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
cb-kde
2002-11-22 20:42:30 UTC
Subject: Re: New: konqueror excessive memory usage I had a smart idea on this. I discovered that I can use dcop to force konqueror to browse different pages. I left a script (below) running on my server box which simulates a browsing session. I can now reproduce the heavy memory usage of konqueror. I used valgrind to try and identify any leaks, and it doesn't reveal anything significant (approx 30k leaked, some of that by libraries not part of KDE). You might need to run this script a few times. I can get Konqueror to consume well over 100MB (based on output of top. I also experience severe slow downs and heavy swap usage, so this value is entirely believable - I don't think top is being misleading here) Valgrind reports that the amount of allocated heap memory at the end is quite small, in the order of 1MB. I don't know enough of KDE to speculate what might be using this amount of memory. I hope that this script will help the Konqueror developers to reproduce and track down the problem. I don't know which configuration options are relevant - I will provide any config files which might be useful. The script follows. You need to have only 1 instance of konqueror running, and it should be freshly loaded. You might need to make the sleep period shorter if you have a fast computer and/or a fast internet connection. My server machine is a 1.2GHz duron, and the internet link is a 128kbps cable modem. (slightly reformatted to deal with line breaks) -------------------------------- #!/bin/sh KONQ=`dcop |grep '^konqueror-'` for j in 1 2 3 4 5 6 7 8 9 10 do for i in http://slashdot.org/ http://freshmeat.net/ \ http://theregister.co.uk http://news.bbc.co.uk/1/hi.html \ http://www.ussg.iu.edu/hypermail/linux/kernel/0211.3/ \ http://www.iconbar.com/ http://www.drobe.co.uk/ \ 'http://bleb.org/cgi-bin/tv/all.cgi?desc=1&b=1' http://rootprompt.org/ \ http://www.debianplanet.org/ http://cnn.com/ do dcop $KONQ qt/konqueror-mainwindow#1/qt_top_dock/locationToolBar/history \ setProperty currentText "$i" dcop $KONQ qt/KXMLGUILClient-KActionCollection/go_url activate sleep 3 done done The memory leak seems to be significantly slower if Javascript is disabled. Perhaps this script provokes several different memory leaks. kjs used to produce a big memory leak. this should be fixed with 3.1. |