Memory Leak... Urgent... Please Help [message #158656] |
Wed, 07 November 2007 07:52  |
Eclipse User |
|
|
|
Originally posted by: vlalan.csc.com
Hi All,
I have seen the questions related to memory leaks in GMF Application
http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg09113.html
http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg08534.html
but i was not able to add to those questions, so starting a new Thread.
I have tried the TPTP plugin on Logic Shapes and Taipan Example and
surprisingly there are no objects of any of the Editparts created when you
open a created diagram or add a new Node on Canvas. I dont know the reason
for this behaviour.
However when i try to run the profiling against our application, i get a
whole lot of Editparts, Figures created which are never freed for garbage
collection.
Please anyone, who has tried profiling any GMF Application earlier tell
that is there any setting in GMFGen or code that can be used to have all
the Editparts ready for Garbage collection as soon as the Editor is closed.
Thanks in Advance,
Vipul
|
|
|
Re: Memory Leak... Urgent... Please Help [message #159472 is a reply to message #158656] |
Sat, 10 November 2007 14:42  |
Eclipse User |
|
|
|
Originally posted by: Sam.sam.org
hi everybody,
GEF was not reusing any objects. As soon you removed a node from a GEF
diagram an restored it throug the undo command, all model, editpart,
proprtypart and figure had to be recreated.
GMF caches objects and these objects are intent to be 'flightweight' an
reusable.
There is an article upon flightweight programming on wikipedia.
Mybe this is why so many objects show in the profiler.
But if the amount of these objects grows and grows every time you open the
same graphical editor, there is something wrong.
Could somebody try to check out, whether these many objects are
flightweight? So where is the data, that makes the flightweight so powerful?
Is this data flushed?
regards
Matthias
"Vipul Lalan" <vlalan@csc.com> schrieb im Newsbeitrag
news:6e44b18666ef51c2f5866baf59b49312$1@www.eclipse.org...
> Hi All,
>
> I have seen the questions related to memory leaks in GMF Application
> http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg09113.html
> http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg08534.html
>
> but i was not able to add to those questions, so starting a new Thread.
>
>
> I have tried the TPTP plugin on Logic Shapes and Taipan Example and
> surprisingly there are no objects of any of the Editparts created when you
> open a created diagram or add a new Node on Canvas. I dont know the reason
> for this behaviour.
> However when i try to run the profiling against our application, i get a
> whole lot of Editparts, Figures created which are never freed for garbage
> collection.
>
> Please anyone, who has tried profiling any GMF Application earlier tell
> that is there any setting in GMFGen or code that can be used to have all
> the Editparts ready for Garbage collection as soon as the Editor is
> closed.
>
> Thanks in Advance,
> Vipul
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.07492 seconds