Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Memory Leak... Urgent... Please Help
Memory Leak... Urgent... Please Help [message #158115] Fri, 02 November 2007 03:27 Go to next message
Arpit Khandelwal is currently offline Arpit KhandelwalFriend
Messages: 28
Registered: July 2009
Junior Member
Hi All,

I have a RCP application that is purely based on GMF( similar to BPMN ).

I tried a profiling tool recently and found out that when i close the
diagram Editor (which has many editparts) the instances of the EditParts
still remain in the memory, next time when i open the same diagram the
instaces get exactly doubled and so on. The end result being i run out of
Heap Space. I also tried to run the system.gc manually but no luck.

While programming i always thought that GMF takes care of the editparts
disposal when i close the DiagramEditor but the Jprofiler suggests that it
does not.

Does any one know a solution to this issue.

ALEX , waiting to here from you :-)

-Arpit
Re: Memory Leak... Urgent... Please Help [message #158327 is a reply to message #158115] Mon, 05 November 2007 13:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: swanbrook66.gmail.com

Arpit wrote:
> Hi All,
>
> I have a RCP application that is purely based on GMF( similar to BPMN ).
>
> I tried a profiling tool recently and found out that when i close the
> diagram Editor (which has many editparts) the instances of the EditParts
> still remain in the memory, next time when i open the same diagram the
> instaces get exactly doubled and so on. The end result being i run out
> of Heap Space. I also tried to run the system.gc manually but no luck.
>
> While programming i always thought that GMF takes care of the editparts
> disposal when i close the DiagramEditor but the Jprofiler suggests that
> it does not.
>
> Does any one know a solution to this issue.
>
> ALEX , waiting to here from you :-)
>
> -Arpit
>

Hi Arpit,
I posted about this issue recently also in this forum as we have the
exact same problem in a GMF based application. I was assured that there
is no such issue with GMF but at the same time to test the example
applications using a profiler and open a bug if this happens. To be
honest, I haven't looked at it any further yet. We will be looking into
it very soon though and I will let you know what I discover.

Tom.
Re: Memory Leak... Urgent... Please Help [message #158609 is a reply to message #158327] Wed, 07 November 2007 11:16 Go to previous messageGo to next message
Sarah Lane is currently offline Sarah LaneFriend
Messages: 4
Registered: July 2009
Junior Member
Hi all,

I am also having this problem. Having profiled the logic example,
multiple instances of the gmf editor are indeed created on each reopen,
however these are soon removed by the garbage collector. This does not
happen at all for my editor, even after I call the gc.
I am using profiling software to investigate what is referencing the
editor after it is closed to try and resolve this and will post any
findings.

regards,
Sarah

Tom Jones wrote:
> Arpit wrote:
>> Hi All,
>>
>> I have a RCP application that is purely based on GMF( similar to BPMN ).
>>
>> I tried a profiling tool recently and found out that when i close the
>> diagram Editor (which has many editparts) the instances of the
>> EditParts still remain in the memory, next time when i open the same
>> diagram the instaces get exactly doubled and so on. The end result
>> being i run out of Heap Space. I also tried to run the system.gc
>> manually but no luck.
>>
>> While programming i always thought that GMF takes care of the
>> editparts disposal when i close the DiagramEditor but the Jprofiler
>> suggests that it does not.
>>
>> Does any one know a solution to this issue.
>>
>> ALEX , waiting to here from you :-)
>>
>> -Arpit
>>
>
> Hi Arpit,
> I posted about this issue recently also in this forum as we have the
> exact same problem in a GMF based application. I was assured that there
> is no such issue with GMF but at the same time to test the example
> applications using a profiler and open a bug if this happens. To be
> honest, I haven't looked at it any further yet. We will be looking into
> it very soon though and I will let you know what I discover.
>
> Tom.
Re: Memory Leak... Urgent... Please Help [message #165145 is a reply to message #158609] Wed, 12 December 2007 02:56 Go to previous message
Eclipse UserFriend
Originally posted by: zzhangh.cn.ibm.com

Same problem, and VERY serious.. The process model we are building
contains hundreds of editparts, and with Diagram Partition, every time
we open a sub-process, GMF loads all editparts again, so soon the memory
was used up.

Sarah Lane Wrote:
> Hi all,
>
> I am also having this problem. Having profiled the logic example,
> multiple instances of the gmf editor are indeed created on each reopen,
> however these are soon removed by the garbage collector. This does not
> happen at all for my editor, even after I call the gc.
> I am using profiling software to investigate what is referencing the
> editor after it is closed to try and resolve this and will post any
> findings.
>
> regards,
> Sarah
>
> Tom Jones wrote:
>> Arpit wrote:
>>> Hi All,
>>>
>>> I have a RCP application that is purely based on GMF( similar to BPMN ).
>>>
>>> I tried a profiling tool recently and found out that when i close the
>>> diagram Editor (which has many editparts) the instances of the
>>> EditParts still remain in the memory, next time when i open the same
>>> diagram the instaces get exactly doubled and so on. The end result
>>> being i run out of Heap Space. I also tried to run the system.gc
>>> manually but no luck.
>>>
>>> While programming i always thought that GMF takes care of the
>>> editparts disposal when i close the DiagramEditor but the Jprofiler
>>> suggests that it does not.
>>>
>>> Does any one know a solution to this issue.
>>>
>>> ALEX , waiting to here from you :-)
>>>
>>> -Arpit
>>>
>>
>> Hi Arpit,
>> I posted about this issue recently also in this forum as we have
>> the exact same problem in a GMF based application. I was assured that
>> there is no such issue with GMF but at the same time to test the
>> example applications using a profiler and open a bug if this happens.
>> To be honest, I haven't looked at it any further yet. We will be
>> looking into it very soon though and I will let you know what I discover.
>>
>> Tom.
Previous Topic:Multiple ecore and one editor
Next Topic:How to change font n size of text on diagram
Goto Forum:
  


Current Time: Thu Jul 25 16:43:59 GMT 2024

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

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

Back to the top