Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Browser Memory Usage
Browser Memory Usage [message #100372] Mon, 28 July 2008 16:13 Go to next message
laurent delvaux is currently offline laurent delvauxFriend
Messages: 8
Registered: July 2009
Junior Member
Hi,

First of all I would like to congratulate the RAP team for their job : RAP
is very impressive and seems very robust!

Nevertheless, I have recently notice that it looks quite "browser memory"
consuming.

To illustrate this "problem", let's consider the RMS Online Demo
(http://rap.eclipse.org/rapdemo/rms).
Step 1 : double click on "Product 1", "Product 2" and "Product 3"
contained in "Principal 6" to open 3 editors
Step 2 : then close the 3 editor tabs (P1, P2, P3)
Step 3 : iterate over "Step 1" and "Step 2" 4 more times (to play the
complete scenario 5 times)

Here are the results on different OS and browsers :
- Mac OS 10.5.4 / Safari 3.1.2 : start=40 MB -> end=51 MB => 11 MB
- Mac OS 10.5.4 / Firefox 3.0.1 : start=53 MB -> end=63 MB => 10 MB
- Win XP SP2 / Firefox 3.0.1 : start = 44 MB -> end=56 MB => 12MB
- Win XP SP2 / IE 6.0 : start = 64 MB -> end=109 MB => 45 MB
- Win XP SP2 / IE 7.0 : start = 69 -> end=116 MB => 47 MB
- I don't have any IE8 installed

First of all, under IE6, the application becomes quite unusable as the
test goes : it was very slow and produce a very bad user experience from
my point of view. It is not a big surprise because IE6 is known as a bad
Ajax application execution platform. Nevertheless, it means that for now
RAP is not a good solution to address IE6 populations. Do you share this
opinion ?

Despite I know that "JavaScript" garbage collection is completely
different from "Java" garbage collector, I'm surprised to get a such
memory consuming (from 10MB to more than 47MB). Is that normal?

I found a thread talking about such problems :
http://dev.eclipse.org/newslists/news.eclipse.technology.rap /msg02656.html.
Can you tell me if this memory usage 'll be improved by the Qooxdoo 0.8
integration and your “client side widget pooling mechanism” ?

Laurent
Re: Browser Memory Usage [message #100505 is a reply to message #100372] Tue, 29 July 2008 08:31 Go to previous messageGo to next message
laurent delvaux is currently offline laurent delvauxFriend
Messages: 8
Registered: July 2009
Junior Member
Here is the result using IE8 Beta :
- Win XP SP3 / IE 8.0 Beta : start = 89 MB -> end = 138 MB => 49 MB
Re: Browser Memory Usage [message #100587 is a reply to message #100372] Tue, 29 July 2008 08:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

qooxdoo works on IE 6. But as you've already encountered, if you're
running a non trivial sized app it is slow - very slow. But this is case
with all non trivial rich internet applications on IE 6, nevertheless
which javascript library is used. The root cause of this is the browser
itself, which is outdated. Microsoft forced the automatic update to IE 7
already on Feb. 12 via WSUS (Windows Server Update Services). So there
isn't much we can do about this.

In general the memory consumption is quite impressive but this seems
common to all javascript frameworks. The pooling mechanism should reduce
this cosumption be reusing existing but unused widgets.


Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: Laurent Delvaux [mailto:laurent.delvaux@zenika.com]
Bereitgestellt: Montag, 28. Juli 2008 18:13
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: Browser Memory Usage
Betreff: Browser Memory Usage

Hi,

First of all I would like to congratulate the RAP team for their job :
RAP
is very impressive and seems very robust!

Nevertheless, I have recently notice that it looks quite "browser
memory"
consuming.

To illustrate this "problem", let's consider the RMS Online Demo
(http://rap.eclipse.org/rapdemo/rms).
Step 1 : double click on "Product 1", "Product 2" and "Product 3"
contained in "Principal 6" to open 3 editors
Step 2 : then close the 3 editor tabs (P1, P2, P3)
Step 3 : iterate over "Step 1" and "Step 2" 4 more times (to play the
complete scenario 5 times)

Here are the results on different OS and browsers :
- Mac OS 10.5.4 / Safari 3.1.2 : start=40 MB -> end=51 MB => 11 MB
- Mac OS 10.5.4 / Firefox 3.0.1 : start=53 MB -> end=63 MB => 10 MB
- Win XP SP2 / Firefox 3.0.1 : start = 44 MB -> end=56 MB => 12MB
- Win XP SP2 / IE 6.0 : start = 64 MB -> end=109 MB => 45 MB
- Win XP SP2 / IE 7.0 : start = 69 -> end=116 MB => 47 MB
- I don't have any IE8 installed

First of all, under IE6, the application becomes quite unusable as the
test goes : it was very slow and produce a very bad user experience from

my point of view. It is not a big surprise because IE6 is known as a bad

Ajax application execution platform. Nevertheless, it means that for now

RAP is not a good solution to address IE6 populations. Do you share this

opinion ?

Despite I know that "JavaScript" garbage collection is completely
different from "Java" garbage collector, I'm surprised to get a such
memory consuming (from 10MB to more than 47MB). Is that normal?

I found a thread talking about such problems :
http://dev.eclipse.org/newslists/news.eclipse.technology.rap /msg02656.ht
ml.
Can you tell me if this memory usage 'll be improved by the Qooxdoo 0.8
integration and your “client side widget pooling mechanism” ?

Laurent
Re: Browser Memory Usage [message #100886 is a reply to message #100587] Wed, 30 July 2008 12:28 Go to previous messageGo to next message
Stefan Hansel is currently offline Stefan HanselFriend
Messages: 103
Registered: July 2009
Senior Member
<br><font size=2 face="sans-serif">Frank, </font>
<br>
<br><font size=2 face="sans-serif">do I see it right, that widget pooling
has been disabled in RAP 1.1 (due to different problems ?) </font>
<br><font size=2 face="sans-serif">When do you think that it will be activated
again ?</font>
<br>
<br><font size=2 face="sans-serif">Will widget pooling help applications,
that often create and discard composites ? </font>
<br>
Re: Browser Memory Usage [message #100900 is a reply to message #100886] Wed, 30 July 2008 13:39 Go to previous messageGo to next message
Stefan   is currently offline Stefan Friend
Messages: 316
Registered: July 2009
Senior Member
Hi Stefan,

afaik, the widget pooling is currently disabled because the
qooxdoo-widgets are not "ready" to be re-used (JS-errors ocurred). Last
what I heard is that there are plans to reanimate the pooling mechanism
with qx 0.8.

One goal of client-side pooling is to lessen the effect of JS memory
leaks, especially with IE.

Frank, please correct me, if I said something wrong :-)

Regards,
Stefan.

stefan.hansel@tolina.de schrieb:
>
> Frank,
>
> do I see it right, that widget pooling has been disabled in RAP 1.1 (due
> to different problems ?)
> When do you think that it will be activated again ?
>
> Will widget pooling help applications, that often create and discard
> composites ?
Re: Browser Memory Usage [message #101268 is a reply to message #100900] Tue, 05 August 2008 15:45 Go to previous messageGo to next message
Markus Kohler is currently offline Markus KohlerFriend
Messages: 4
Registered: July 2009
Junior Member
Hi all,
See my comments below ...

Stefan Roeck wrote:

> Hi Stefan,

> afaik, the widget pooling is currently disabled because the
> qooxdoo-widgets are not "ready" to be re-used (JS-errors ocurred). Last
> what I heard is that there are plans to reanimate the pooling mechanism
> with qx 0.8.

> One goal of client-side pooling is to lessen the effect of JS memory
> leaks, especially with IE.

Regarding memory leaks. It is known that IE currently gets slower the more
memory the application uses.
It's is also well known that IE (even 7.0) has memory leaks and it's
therefore crucial for good "rendering" performance to avoid them.

Has anyone looked whether there are any memory leaks with qdox/RAP ?

I know that Microsoft has a tool to detect most of the leaks, but I'm not
sure whether that is available for the general public.


Regards,
Markus


> Frank, please correct me, if I said something wrong :-)

> Regards,
> Stefan.

> stefan.hansel@tolina.de schrieb:
>>
>> Frank,
>>
>> do I see it right, that widget pooling has been disabled in RAP 1.1 (due
>> to different problems ?)
>> When do you think that it will be activated again ?
>>
>> Will widget pooling help applications, that often create and discard
>> composites ?
Re: Browser Memory Usage [message #102417 is a reply to message #101268] Thu, 14 August 2008 10:20 Go to previous messageGo to next message
Stefan Hansel is currently offline Stefan HanselFriend
Messages: 103
Registered: July 2009
Senior Member
I spent some time analyzing the memory problems of IE in general.

The short version:
- it is very hard to write AJAX application that don't leak in IE ;-)
especially when DOM-nodes are created, used with listeners and then
removed again (as every AJAX-library out there heavily does).
- though its hard, its not impossible, as Google Web Toolkit proves (tried
it out the first time - not bad that stuff ;-D ).
- even when writing a very simple qooxdoo (0.7.3 and 0.8-beta) app (no
RAP involved), the browser memory goes up very fast on IE.

That's why I suppose the problem should first be searched in qooxdoo and
started a discussion on their newsgroup.
See http://thread.gmane.org/gmane.comp.lang.javascript.qooxdoo.d evel/15870
for more details and hopefully solutions in the future.
Re: Browser Memory Usage [message #103826 is a reply to message #101268] Mon, 01 September 2008 16:58 Go to previous messageGo to next message
Stefan Hansel is currently offline Stefan HanselFriend
Messages: 103
Registered: July 2009
Senior Member
A short summary for all who didn't follow the different memory-related
mails on qooxdoos mailings-lists:

- qooxdoo 0.8 is out and doesn't suffer any memory leaks any more. So if
the next RAP version (v1.2, due around July 2009) uses qooxdoo 0.8 I
assume there won't be big memory problems in RAP even in IE.
(and even without widget pooling, which would then only make sense to
improve RAP speed).
http://news.qooxdoo.org/the-week-in-qooxdoo-2008-08-29

We'll have to wait for the RAP v1.2-plan though, to be sure if we can
hope for a 0.8 integration :D ...

- qooxdoo 0.7.4 (not out yet) also has several improvements, that have a
huuuge impact on lower memory usage (RAP currently uses 0.7.3) .
I don't expect the qooxdoo timeframe to match the RAP 1.1.1 release -
anyway Ruediger said that a RAP 1.1.2 version could be created if the
promises for lower memory usage hold true in 0.7.4.

You can follow the following bug-report to stay informerd about RAP
1.1.x development concerning the memory consumption:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=244976

Kind regards,

Stefan
Re: Browser Memory Usage [message #103870 is a reply to message #103826] Tue, 02 September 2008 07:37 Go to previous message
Stefan   is currently offline Stefan Friend
Messages: 316
Registered: July 2009
Senior Member
Hi Stefan,

this sounds really promissing! Thanks for your commitment and the time
you spent with these things...

Regards,
Stefan.


stefan.hansel@tolina.de schrieb:
> A short summary for all who didn't follow the different memory-related
> mails on qooxdoos mailings-lists:
>
> - qooxdoo 0.8 is out and doesn't suffer any memory leaks any more. So if
> the next RAP version (v1.2, due around July 2009) uses qooxdoo 0.8 I
> assume there won't be big memory problems in RAP even in IE.
> (and even without widget pooling, which would then only make sense to
> improve RAP speed).
> http://news.qooxdoo.org/the-week-in-qooxdoo-2008-08-29
>
> We'll have to wait for the RAP v1.2-plan though, to be sure if we can
> hope for a 0.8 integration :D ...
>
> - qooxdoo 0.7.4 (not out yet) also has several improvements, that have a
> huuuge impact on lower memory usage (RAP currently uses 0.7.3) .
> I don't expect the qooxdoo timeframe to match the RAP 1.1.1 release -
> anyway Ruediger said that a RAP 1.1.2 version could be created if the
> promises for lower memory usage hold true in 0.7.4.
>
> You can follow the following bug-report to stay informerd about RAP
> 1.1.x development concerning the memory consumption:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=244976
>
> Kind regards,
>
> Stefan
>
>
Previous Topic:Close RAP Application
Next Topic:Preference Problem of RAP Demo
Goto Forum:
  


Current Time: Fri Apr 19 02:35:31 GMT 2024

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

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

Back to the top