bolt icon indicating copy to clipboard operation
bolt copied to clipboard

Best way to limit memory usage?

Open ghost opened this issue 8 years ago • 2 comments

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...

ghost avatar Jun 05 '17 16:06 ghost

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 :)

juliandroid avatar Jul 17 '17 20:07 juliandroid

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

ghost avatar Jul 17 '17 20:07 ghost