This repository has been archived by the owner on Jan 9, 2025. It is now read-only.
How to free RAM memory after clear lazy object is loaded into RAM #526
Answered
by
hg-ms
nhthong2001
asked this question in
Q&A
-
Hello MicroStream team, After I load a lazy object onto Ram, then I use Lazy.clear() to clear this object. How can I release the memory occupied by this lazy object immediately or as soon as possible to avoid OOM problem for loading other lazy objects onto Ram. |
Beta Was this translation helpful? Give feedback.
Answered by
hg-ms
Feb 2, 2023
Replies: 1 comment
-
It’s important that there are no more references to lazy loaded objects in your code so that they can deleted by the java GC from memory. You may trigger the Java-GC trigger manually to force memory cleanup but that’s usually not necessary. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nhthong2001
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It’s important that there are no more references to lazy loaded objects in your code so that they can deleted by the java GC from memory. You may trigger the Java-GC trigger manually to force memory cleanup but that’s usually not necessary.