How to manage MicroStream's memory? #508
-
Hi all, Thanks very much!!! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi, An empty Microstream storage instance requires less then 10 MB memory. The more important part are the management data required for each persisted object instance. Best regards |
Beta Was this translation helpful? Give feedback.
Hi,
First of all we have a JCache (JSR-107) implementation, which is optionally backed by a MicroStream Storage (https://docs.microstream.one/manual/cache/index.html). Maybe this already meets your requirements.
An empty Microstream storage instance requires less then 10 MB memory. The more important part are the management data required for each persisted object instance.
To estimate the memory usage the most important part is the additional data required for each persisted object. You can calculate round about 188 Bytes per stored Object.
LazyReferences require additional 104 Bytes even if unloaded. Using them with very small objects may counterproductive.
Microstream also uses an inter…