Re: [webkit-dev] Memory leak or should I clear content of QWebPage?

2009-07-29 Thread Holger Freyther
On Thursday 30 July 2009 02:52:11 Holger Freyther wrote:
> On Wednesday 29 July 2009 17:40:59 Zongheng Zhou wrote:
> > After I load "www.cnn.com" for 800 times consecutively, the virtual
> > memory size of my little program has reached 1600M; while the resident
> > memory is 1500M
> > This is horribleIs this kind of memory leak expected?
>
> It would be a great sign of respect if you read
> http://webkit.org/contact.html and start using webkit-help for these kind
> of questions.
>

And a good request for help includes the following information (and send it to 
webkit-help):

- What you are using. QWebPage doesn't really tell much. Which version 
of 
WebKit, which version of Qt do you use?

- What you are doing. E.g. do you use QtLauncher -r load.these.urls 
with 800 
entries for cnn. Or do you have custom code? If you have custom code you 
should post it to make sure you don't have a memleak in your code.


kind regards
holger
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Memory leak or should I clear content of QWebPage?

2009-07-29 Thread Holger Freyther
On Wednesday 29 July 2009 17:40:59 Zongheng Zhou wrote:
> After I load "www.cnn.com" for 800 times consecutively, the virtual memory
> size of my little program has reached 1600M; while the resident memory is
> 1500M
> This is horribleIs this kind of memory leak expected?

It would be a great sign of respect if you read http://webkit.org/contact.html 
and start using webkit-help for these kind of questions.

holger
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Memory leak or should I clear content of QWebPage?

2009-07-29 Thread tonikitoo (Antonio Gomes)
Something that could be helpful is running your test batch w/
GtkLauncher too to see if the problem is qt-specific (i bet not) or at
least to check if it is even worse in qt port than others

On Wed, Jul 29, 2009 at 11:40 AM, Zongheng Zhou wrote:
> After I load "www.cnn.com" for 800 times consecutively, the virtual memory
> size of my little program has reached 1600M; while the resident memory is
> 1500M
> This is horribleIs this kind of memory leak expected?
> ___
> webkit-dev mailing list
> webkit-dev@lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
>



-- 
--Antonio Gomes
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Memory leak or should I clear content of QWebPage?

2009-07-29 Thread David Kilzer

On Wednesday, July 29, 2009 8:40:59 AM, Zongheng Zhou wrote:

>After I load "www.cnn.com"; for 800 times consecutively,
>the virtual memory size of my little program has reached
>1600M; while the resident memory is 1500M
>
>This is horribleIs this kind of memory leak expected?  

Of course not.  File a bug on  with more detail than 
you've provided in your email messages (which Qt port you're compiling, e.g., 
where you got the source code, the revision/commitish of the source, which 
processor and operating system, which compiler, etc.).

Also, please move this discussion to .  The 
webkit-dev mailing list is to discuss future development of the WebKit engine.  
Thanks!

Dave

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Memory leak or should I clear content of QWebPage?

2009-07-29 Thread Zongheng Zhou
After I load "www.cnn.com" for 800 times consecutively, the virtual memory
size of my little program has reached 1600M; while the resident memory is
1500M
This is horribleIs this kind of memory leak expected?
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] Memory leak or should I clear content of QWebPage?

2009-07-28 Thread Zongheng Zhou
Hi, all
I just built a program in QT webkit, and noticed that the memory usage of my
program grows 1 or 2 megabytes as I load each web page.

My program is quite simple. I defined a global variable:
QWebPage mypage;

Each time when a new URL request comes, I call the following to load the web
page:
mypage.mainFrame()->load(url);

Anybody knows whether this memory jump Is because of memory leak in webkit?
Or should I need to clear the content in "mypage" after each loading (I
don't find any API to do this)?

Thanks in advance.
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev