Bug 333323 - [SWT][Browser][Mozilla] memory leak in embeded mozilla browser widget
Summary: [SWT][Browser][Mozilla] memory leak in embeded mozilla browser widget
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.1   Edit
Hardware: PC Windows XP
: P3 major with 4 votes (vote)
Target Milestone: 3.6.2+   Edit
Assignee: Grant Gayed CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2010-12-29 20:09 EST by Yun Feng CLA
Modified: 2012-11-22 19:17 EST (History)
10 users (show)

See Also:


Attachments
The test application (951.54 KB, application/zip)
2010-12-29 20:12 EST, Yun Feng CLA
no flags Details
3.7-stream patch (804 bytes, patch)
2011-03-11 16:33 EST, Grant Gayed CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yun Feng CLA 2010-12-29 20:09:10 EST
Build Identifier: 3.6

The Browser widget created with SWT.MOZILLA has big memory leak issue in below scenario: reload the page every 5 secondes and keep moving the mouse over the page.
The memory goes from 90MB to 300MB in about 7 minutes, then the RCP application crashes.

The Java heap size of the RCP application is very stable, so the leak must happen in Native code.

Reproducible: Always

Steps to Reproduce:
A test application is attached, reproduce this issue with below steps:
1) Import XULRunnerTest.zip into Eclipse
2) Run xulrunnertest.Snippet267 with VM argument: -Dorg.eclipse.swt.browser.XULRunnerPath="your_xulrunner_path", I'm using XULRunner 1.9.2
3) The Yahoo home page will be refreshed every 5 seconds automatically.
4) Open Task Manager in XP to mornitor the memory usage of the RCP application.
5) Keeping moving the mouse over the Yahoo page. 
6) You will see the memory keeps growing quickly

The memory usage for this RCP is very stable if no mouse moving over the Yahoo home page.
Comment 1 Yun Feng CLA 2010-12-29 20:12:05 EST
Created attachment 185896 [details]
The test application
Comment 2 Arun Shivaswamy CLA 2011-01-05 09:20:23 EST
This defect needs immediate resolution since it is blocking Page Designer component of RAD.  Please provide updates...
Comment 3 Vikas Chandra CLA 2011-01-17 02:44:57 EST
Any updates?
Comment 4 Billy Rowe CLA 2011-03-02 11:16:48 EST
Hi,

Are there any updates on this defect?

Billy
Comment 5 Lisa Lasher CLA 2011-03-11 13:14:00 EST
Is anyone working on this defect?  Rational Business Developer has a customer APAR on this problem, and the customer is getting impatient for a fix.
Comment 6 Grant Gayed CLA 2011-03-11 16:33:36 EST
Created attachment 191031 [details]
3.7-stream patch
Comment 7 Grant Gayed CLA 2011-03-11 16:34:22 EST
fixed > 20110311
Comment 8 Billy Rowe CLA 2011-03-13 23:54:27 EDT
Hi Grant. Thanks for the fix. Can it be backported to the 3.6x stream. Rational Application Developer needs a fix in that stream.
Comment 9 Ian Tewksbury CLA 2011-03-14 09:27:16 EDT
Lakshmi,

I know Grant is out for the next few days.  Any chance you could look into bringing this back to 3.6.x stream for the adopter product that needs it?
Comment 10 Lisa Lasher CLA 2011-03-14 11:11:29 EDT
Rational Business Developer also requires a 3.6.x fix
Comment 11 Silenio Quarti CLA 2011-03-14 11:50:17 EDT
Please open a bug in the IES bugzilla requesting the back port (https://bugs.ottawa.ibm.com/).
Comment 12 Billy Rowe CLA 2011-03-14 13:24:33 EDT
(In reply to comment #11)
> Please open a bug in the IES bugzilla requesting the back port
> (https://bugs.ottawa.ibm.com/).

Hi,

I don't have access to that system. Could you open it on our behalf?

Billy
Comment 13 Silenio Quarti CLA 2011-03-14 15:05:22 EDT
Fix has been released to R3_6_maintenance branch.
Comment 14 Ian Tewksbury CLA 2011-03-14 15:15:29 EDT
(In reply to comment #13)
> Fix has been released to R3_6_maintenance branch.

Thank you much!