Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » ie8 memory problem
ie8 memory problem [message #868230] Tue, 01 May 2012 14:06 Go to next message
bogdan toma is currently offline bogdan toma
Messages: 38
Registered: February 2010
Member
Hello,

We have problems with our RAP application on IE8 mainly.
The memory on client side seems to not get released.

We have a lot of editors inside and even when there are closed the memory still increases. The widgets seems to be disposed on server side.

Do you any advice how can I test the memory consumption/releasing on client side ?
Does the RAP team have any client memory management tests? (if yes can i see them ?)

Thank you very much.
Re: ie8 memory problem [message #868355 is a reply to message #868230] Tue, 01 May 2012 15:24 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1795
Registered: July 2009
Senior Member
Hi,
which RAP version are you using?
Best,
Ivan

On 5/1/2012 9:06 PM, bogdan.toma Mising name wrote:
> Hello,
>
> We have problems with our RAP application on IE8 mainly.
> The memory on client side seems to not get released.
>
> We have a lot of editors inside and even when there are closed the
> memory still increases. The widgets seems to be disposed on server side.
>
> Do you any advice how can I test the memory consumption/releasing on
> client side ?
> Does the RAP team have any client memory management tests? (if yes can
> i see them ?)
>
> Thank you very much.

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: ie8 memory problem [message #868371 is a reply to message #868355] Tue, 01 May 2012 16:48 Go to previous messageGo to next message
bogdan toma is currently offline bogdan toma
Messages: 38
Registered: February 2010
Member
Hi,

I am using RAP 1.4.0 stable release.
Plugin org.eclipse.rap.rwt has this version 1.4.0.20110614-2335.

Thank you.
Re: ie8 memory problem [message #868626 is a reply to message #868371] Wed, 02 May 2012 05:56 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1795
Registered: July 2009
Senior Member
Hi,
we had a memory leak in IE related to the Browser widget - see:
327440: Memory leak problem with Iframe in Internet Explorer
https://bugs.eclipse.org/bugs/show_bug.cgi?id=327440
but it has been fixed in 1.4M7.
As a first step I would suggest to allocate which exact widget leaks
memory. Please note that the memory is not released immediately, after
you dispose a widget. The execution of the browser garbage collection is
not predicted. If it's possible for you, could you check your
application against RAP 1.5M6? Do you observe the same leakage in 1.5M6?
Best,
Ivan

On 5/1/2012 11:48 PM, bogdan toma wrote:
> Hi,
>
> I am using RAP 1.4.0 stable release.
> Plugin org.eclipse.rap.rwt has this version 1.4.0.20110614-2335.
>
> Thank you.

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: ie8 memory problem [message #868714 is a reply to message #868626] Wed, 02 May 2012 08:42 Go to previous messageGo to next message
bogdan toma is currently offline bogdan toma
Messages: 38
Registered: February 2010
Member
Hi,

thank you for replying.
I have tested also with RAP1.5M6 but i had the same problem, The memory used by browser seems to go up.
Do you have an advice on how can I detect the leaking widgets?

Re: ie8 memory problem [message #869263 is a reply to message #868714] Thu, 03 May 2012 02:29 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1795
Registered: July 2009
Senior Member
Hi Bogdan,
bogdan toma wrote on Wed, 02 May 2012 08:42
Hi,
Do you have an advice on how can I detect the leaking widgets?

Create a simple RAP application that do the following:
1. Select a widget type by a combo box.
2. Button to create 10 widgets from that type.
3. Button to dispose these widgets.
4. Button that executes the above steps 100 times automatically like:
create widgets -> wait a sec or two to give a chance browser to render all of them -> dispose widgets
5 Measure the memory consumption with Sysinternals ProcessExplorer -> PrivateBytes before the automatic cycle and after it. Note that IE has its own (native) memory leak.
HTH,
Ivan
Re: ie8 memory problem [message #869748 is a reply to message #869263] Fri, 04 May 2012 03:57 Go to previous messageGo to next message
bogdan toma is currently offline bogdan toma
Messages: 38
Registered: February 2010
Member
Hi,

I have implemented some tests. The code is below (this code is contained by an RAP/RCP editor)
My results so far:
For 200 buttons and adding/disposing 1000 times:
FF12: start:160MB end: 167MB;
second time: start: 167MB end: 158MB
IE8: start:114MB end: 165MB;
second time : start: 165MB end: 231MB

Do you think am i doing something wrong ?
Seems like IE8 leaks for a simple widgets like "button".

Thank you.

Code:
Thread nonUiThread = new Thread(new Runnable()
                {

                    public void run()
                    {
                        try
                        {
                            for (int i = 0; i < N_STEPS; i++)
                            {
                                System.out.println(METHOD + " iteration " + i);
                                btnCreate.getDisplay().syncExec(new Runnable()
                                {

                                    public void run()
                                    {
                                        createAStep(composite_1);
                                    }
                                });
                                Thread.sleep(2000);
                                btnCreate.getDisplay().syncExec(new Runnable()
                                {

                                    public void run()
                                    {
                                        disposeAStep(composite_1);
                                    }
                                });
                            }

                        }
                        catch (Exception e)
                        {
                            // TODO: handle exception
                        }
                        finally
                        {
                            btnCreate.getDisplay().syncExec(new Runnable()
                            {
                                public void run()
                                {
                                    UICallBack.deactivate(someId);
                                }
                            });
                        }
                    }
                });
                nonUiThread.start();


 
 private void disposeAStep(Composite parent)
    {
        Control[] children = parent.getChildren();
        for (int i = 0; i < STEP && i < children.length; i++)
        {
            children[i].dispose();
        }
    }
private void createAStep(Composite parent)
    {
        for (int i = 0; i < STEP; i++)
        { 
            Button button = new Button(parent, SWT.None);
            button.setText("atext");
        }
        parent.layout();
    }
Re: ie8 memory problem [message #1011967 is a reply to message #869748] Wed, 20 February 2013 10:55 Go to previous messageGo to next message
Ronald So is currently offline Ronald So
Messages: 198
Registered: April 2011
Senior Member
Hello all,

I am wondering if any of you still having issues with RAP on IE8. We are using RAP 1.5.1 and it works really well in all browsers EXCEPT IE8. This browser memory issue is new to us, but we hit into other weird issues such as TitleAreaDialog does not get closed correctly. There are other issues that are logged by our guys that are only reproducible in IE8. I am wondering if any of you sees the same problem? Is IE8 supported for RAP 1.5.1?

Thanks,
Ronald
Re: ie8 memory problem [message #1011977 is a reply to message #1011967] Wed, 20 February 2013 11:10 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1795
Registered: July 2009
Senior Member
Hi Roland,
yes... IE8 is supported in RAP 1.5.1 and RAP 2.0. Is your test OS
Windows XP? In Windows XP the IE is installed on top of IE6 and if you
don't install some addition Windows (IE) patches/updates the old IE6
JavaScript engine is used.
Best,
Ivan

On 2/20/2013 5:55 PM, Ronald So wrote:
> Hello all,
>
> I am wondering if any of you still having issues with RAP on IE8. We
> are using RAP 1.5.1 and it works really well in all browsers EXCEPT
> IE8. This browser memory issue is new to us, but we hit into other
> weird issues such as TitleAreaDialog does not get closed correctly.
> There are other issues that are logged by our guys that are only
> reproducible in IE8. I am wondering if any of you sees the same
> problem? Is IE8 supported for RAP 1.5.1?
>
> Thanks,
> Ronald

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: ie8 memory problem [message #1012032 is a reply to message #1011977] Wed, 20 February 2013 13:41 Go to previous messageGo to next message
Ronald So is currently offline Ronald So
Messages: 198
Registered: April 2011
Senior Member
Hi Ivan,

No our testers are using Windows 7.

Thanks,
Ronald
Re: ie8 memory problem [message #1012245 is a reply to message #1012032] Thu, 21 February 2013 02:22 Go to previous message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1795
Registered: July 2009
Senior Member
Please open a bug reports in this case with a snippet to reproduce the
problems.
Best,
Ivan

On 2/20/2013 8:41 PM, Ronald So wrote:
> Hi Ivan,
>
> No our testers are using Windows 7.
>
> Thanks,
> Ronald

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:RAP Hello World not working
Next Topic:Exposing additional HTTP link to RAP application
Goto Forum:
  


Current Time: Mon Sep 01 09:51:50 EDT 2014

Powered by FUDForum. Page generated in 0.03546 seconds