Skip to content
This repository has been archived by the owner on Mar 9, 2019. It is now read-only.

Best way to limit memory usage? #692

Open
ghost opened this issue Jun 5, 2017 · 2 comments
Open

Best way to limit memory usage? #692

ghost opened this issue Jun 5, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 5, 2017

Is there a good way to set a hard limit on the memory usage of bolt? Going to be using it embedded on a user-spacey application and can't allow it to eat up all resources if a large record comes along...

@juliandroid
Copy link

I was looking at the same problem and it seems that you have to modify
bolt_platform.go (for example bolt_arm.go) and modify maxMapSize to the maximum size you want. There is no option to change, only options.InitialMmapSize which is nice, but not the same :)

@ghost
Copy link
Author

ghost commented Jul 17, 2017

Dang. Maybe something I can add config control for and pr soon. Thx anyways

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant