EMF and memory usage [message #1073120] |
Wed, 24 July 2013 03:16  |
Eclipse User |
|
|
|
Goodmorning all,
I've got very large model (more than 1GB) to load. So I've implemented a mechanism to find which resources are not used and unload them.
Here is my problem: I remove all references to those resources and I unload them. After unload action my Java heap size decreases but RAM usage of Java VM remains the same. I've try to dump in memory analyzer and I've seen that instances of unnecessary resources are 0.
So why the Java VM process uses the same memory of the moment when the resources are yet loaded?
Am I missing something?
|
|
|
|
Re: EMF and memory usage [message #1073164 is a reply to message #1073120] |
Wed, 24 July 2013 04:44  |
Eclipse User |
|
|
|
Tommaso,
Unloading a resource will convert all objects to proxies which involves
setting each object's proxy URI. That will increase heap usage until
such objects are garbage collected. The objects in the resource are
all strongly connected, so if there remains any reference to any object
in the tree, e.g., from other resources, the whole tree will remain in
memory.
On 24/07/2013 9:16 AM, Tommaso De Sica wrote:
> Goodmorning all,
>
> I've got very large model (more than 1GB) to load. So I've implemented
> a mechanism to find which resources are not used and unload them.
>
> Here is my problem: I remove all references to those resources and I
> unload them. After unload action my Java heap size decreases but RAM
> usage of Java VM remains the same. I've try to dump in memory analyzer
> and I've seen that instances of unnecessary resources are 0.
>
> So why the Java VM process uses the same memory of the moment when the
> resources are yet loaded?
>
> Am I missing something?
|
|
|
Powered by
FUDForum. Page generated in 0.03234 seconds