Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Memory leak with SWT browser
Memory leak with SWT browser [message #748769] Mon, 24 October 2011 22:11 Go to next message
Francois Missing name is currently offline Francois Missing nameFriend
Messages: 15
Registered: October 2011
Junior Member
Hello all,

I've developped an application based on the SWT browser widget which help Myspace browsing. Problem I have is due to known memory leak with SWT browser (either IE or Webkit).

bugs.eclipse.org/bugs/show_bug.cgi?id=134646

As my browser is alway open, memory leak tend to crash the app once javaw process reach approx. 900Mb (higher with a 64bits JRE).

I've tried several workaround with no success. Memory is growing every time a browser.setUrl() or a browser.refresh() is invoked.

Any news on this (old) bug ?

François from MMM

PS : by the way I think I have this problem since 3.7

[Updated on: Mon, 24 October 2011 22:43]

Report message to a moderator

Re: Memory leak with SWT browser [message #753505 is a reply to message #748769] Thu, 27 October 2011 14:00 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2151
Registered: July 2009
Senior Member
Is your Browser ever disposed? The referenced memory leak is a problem
where not all memory that is allocated during a control's lifetime is
reclaimed when it's disposed. It's not a leak if the Browser is never
disposed though, because it is maintaining its navigation history.
Periodically disposing the Browser will reclaim some of this memory
(though some is known to leak).

Beyond this there's no further news. It's believed to be a problem in
the embedded IE control.

Grant


On 10/24/2011 6:11 PM, Fran wrote:
> Hello all,
>
> I've developped an application based on the SWT browser widget which
> help Myspace browsing. Problem I have is due to known memory leak with
> SWT browser (either IE or Webkit).
>
> bugs.eclipse.org/bugs/show_bug.cgi?id=134646
>
> As my browser is alway open, memory leak tend to crash the app one javaw
> process reach approx. 900Mb (higher with a 64bits JRE).
>
> I've tried several workaround with no success. Memory is growing every
> time a browser.setUrl() or a browser.refresh() is invoked.
>
> Any news on this (old) bug ?
>
> François from MMM
Re: Memory leak with SWT browser [message #753555 is a reply to message #753505] Thu, 27 October 2011 16:34 Go to previous messageGo to next message
Francois Missing name is currently offline Francois Missing nameFriend
Messages: 15
Registered: October 2011
Junior Member
Hello,

Thanks for the answer !

The problem I have is that I never dispose my browser so the browser keeps growing and growing. The problem is mostly when using the setUrl() method. If i'm using the browser to navigate directly (by clicking inside the browser) there is no leak !

As far as I have tested, disposing the browser doesn't reclaim any memory at all.

Also the problem is worst since I've upgraded to 3.7 and IE9 compatibility.

François from MMM
Re: Memory leak with SWT browser [message #754517 is a reply to message #748769] Wed, 02 November 2011 21:23 Go to previous messageGo to next message
Francois Missing name is currently offline Francois Missing nameFriend
Messages: 15
Registered: October 2011
Junior Member
Update : I've discovered that I can almost remove the memory leak problem with :

browser.setJavascriptEnabled(false);

However, some pages doesn't work this way... :-\

F.
Re: Memory leak with SWT browser [message #757353 is a reply to message #748769] Thu, 17 November 2011 21:30 Go to previous message
Francois Missing name is currently offline Francois Missing nameFriend
Messages: 15
Registered: October 2011
Junior Member
Any updates ?

The browser.setJavascriptEnabled(false) workaround is not really satisfaying because most pages don't work.

François
Previous Topic:# in twitter URL causes browser not to load
Next Topic:TreeViewer with ILazyTreeContentProvider
Goto Forum:
  


Current Time: Mon Dec 22 07:12:45 GMT 2014

Powered by FUDForum. Page generated in 0.17583 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software