Skip to content

How to manage MicroStream's memory? #508

Answered by hg-ms
nhthong2001 asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@nhthong2001
Comment options

@hg-ms
Comment options

hg-ms Jan 30, 2023
Collaborator

@nhthong2001
Comment options

@hg-ms
Comment options

hg-ms Jan 30, 2023
Collaborator

Answer selected by nhthong2001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants