Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Memory leak?
Memory leak? [message #510358] Wed, 27 January 2010 10:48 Go to next message
tingel christian is currently offline tingel christianFriend
Messages: 46
Registered: December 2009
Member
Hi, all experts:

My workmates told me that she had left her IE6 opening for a whole night after work, and when she came back office this morning, the browser had eaten up 1.5GB memory...

I searched the forum and found this thread:
http://dev.eclipse.org/newslists/news.eclipse.technology.rap /msg04513.html
and this one:
http://thread.gmane.org/gmane.comp.lang.javascript.qooxdoo.d evel/15870

and got to know that there were some bugs causing huge memory comsumption in Qooxdoo 0.7 & 0.8. as far as I know, RAP is now using Qooxdoo 0.7 in version 1.2 and 1.3M4, could this probably be the reason for the memory eating problem in our application?

Our RAP 1.2 based application uses some labels, trees, tables, buttons and some icons as well and there is a ping task background to monitor the browser closing event.

Please feel free to inform me if I did not express myself clearly.

Thx a lot and best Regards!

Christian
Re: Memory leak? [message #510403 is a reply to message #510358] Wed, 27 January 2010 13:01 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
RAP uses qx 0.7.4 plus several patches. All memory issues from the
mentioned newsgroup discussions are solved in the qx version used by
RAP. We are running memory leak tests regularly and havent found any
leaks lately.

From your description I would suspect the "ping task" as it is the only
active thing over night. Does it use the RAP request mechanism or a
different one?

HTH
Rüdiger


On 27.01.2010 11:48, tingel christian wrote:
> Hi, all experts:
>
> My workmates told me that she had left her IE6 opening for a whole night
> after work, and when she came back office this morning, the browser had
> eaten up 1.5GB memory...
>
> I searched the forum and found this thread:
> http://dev.eclipse.org/newslists/news.eclipse.technology.rap /msg04513.html
> and this one:
> http://thread.gmane.org/gmane.comp.lang.javascript.qooxdoo.d evel/15870
>
> and got to know that there were some bugs causing huge memory
> comsumption in Qooxdoo 0.7 & 0.8. as far as I know, RAP is now using
> Qooxdoo 0.7 in version 1.2 and 1.3M4, could this probably be the reason
> for the memory eating problem in our application?
>
> Our RAP 1.2 based application uses some labels, trees, tables, buttons
> and some icons as well and there is a ping task background to monitor
> the browser closing event.
>
> Please feel free to inform me if I did not express myself clearly.
>
> Thx a lot and best Regards!
>
> Christian


--
Rüdiger Herrmann
http://eclipsesource.com
Re: Memory leak? [message #510535 is a reply to message #510358] Wed, 27 January 2010 18:49 Go to previous messageGo to next message
Austin Riddle is currently offline Austin RiddleFriend
Messages: 128
Registered: July 2009
Senior Member
Hello Christian,

This may sound like passing the blame, but in our experience with our heaviest weight RAP applications, there are a combination of factors that can lead to the situation you describe. Many of our users are constrained to use IE6 and I can tell you that IE6 has glaring issues with garbage collection. We have experienced similar bloat on the client side and our testing with other browsers shows that the problem is more IE6 centric than RAP or our application code.

I would suggest trying your test with a more current browser and see what results.
Re: Memory leak? [message #510680 is a reply to message #510358] Thu, 28 January 2010 10:32 Go to previous messageGo to next message
tingel christian is currently offline tingel christianFriend
Messages: 46
Registered: December 2009
Member
Hi,

Thx Rüdiger and Austin.

I tried to use my IE8 to have the test last night and the result got a little bit positive but memory consumption was still rising.

Last night: 50220K;
this morning: 175884K

more than 120M memory used.

I tried to removed the code having the ping task activated, and the situation turned stable.

Please check out the following codes which I thought would not make any difference for client side memory consumption:

Here is my code snippet removed:

// enable server push
UICallBack.activate("notifier");

// start ping
timer.schedule(pingTask, 10000, 10000);

What the ping task is doing is:

if (currentTime - lastPingTime > 30000)
{
System.out.println("session closed.");
if (!display.isDisposed())
{
display.asyncExec(new Runnable()
{
public void run()
{
UICallBack.deactivate(NOTIFIER);
}
});
}
pingTask.cancel();
}
else
{
display.asyncExec(new Runnable() {
public void run()
{
lastPingTime = System.currentTimeMillis();
}
});
}

Thx and Best Regards!

Christian

[Updated on: Thu, 28 January 2010 10:47]

Report message to a moderator

Re: Memory leak? [message #510905 is a reply to message #510358] Fri, 29 January 2010 06:06 Go to previous messageGo to next message
tingel christian is currently offline tingel christianFriend
Messages: 46
Registered: December 2009
Member
Hi,

Rüdiger and Austin:

I had a test to move the code to the Mail sample created by eclipse new project wizard, and found that the problem occured too.

could you please have an investigation to determin whether or not there is anything wrong during this procedure?

Thx a lot & Best Regards!

Christian

[Updated on: Fri, 29 January 2010 06:17]

Report message to a moderator

Re: Memory leak? [message #510938 is a reply to message #510905] Fri, 29 January 2010 09:04 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
We will have a look. Please file a bugzilla with the project attached.

Rüdiger

--
Rüdiger Herrmann
http://eclipsesource.com

On 29.01.2010 07:06, tingel christian wrote:
> Hi,
>
> Rüdiger and Austin:
>
> I had a test to move the code to the Mail sample created by eclipse new
> project wizard, and found that the problem occured too.
>
> could you please have an investigation to determin weather or not there
> is anything wrong during this procedure?
>
> Thx a lot & Best Regards!
>
> Christian
Re: Memory leak? [message #511043 is a reply to message #510938] Fri, 29 January 2010 16:06 Go to previous message
tingel christian is currently offline tingel christianFriend
Messages: 46
Registered: December 2009
Member
Hi Rüdiger:

I have filed a bug here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=301261

Thx a lot and Best Regards!

Christian
Previous Topic:Internationalization for internal plugins
Next Topic:Firefox 3.5.7 + flash content + RAP
Goto Forum:
  


Current Time: Thu Mar 28 08:53:11 GMT 2024

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

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

Back to the top