EMF and memory usage [message #1073120] |
Wed, 24 July 2013 07:16 |
|
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 08:44 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
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?
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03064 seconds