|
Re: Memory leak? [message #510403 is a reply to message #510358] |
Wed, 27 January 2010 13:01 |
Rüdiger Herrmann 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 #510680 is a reply to message #510358] |
Thu, 28 January 2010 10:32 |
tingel christian 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 |
tingel christian 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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03933 seconds