I use 20GB memory container, flexmonster data server raise memory error, could you support
please check query or connection string. exception of type ‘system.outofmemoryexception’ was thrown.
at flexmonster.dataserver.core.dataloaders.dataloader.load(string index)
at flexmonster.dataserver.core.datastorages.datastorage.getoraddasync(string cachekey)
at flexmonster.dataserver.flexmonsterprepopulatingcacheservice.tryloadindex(iservicescope scope, string indexname)
Hello, Nam!
Thank you for contacting us.
Kindly note that the provided error message indicates that the 20Gb memory is not enough for the Data Server to process all data. From our experience, Flexmonster Data Server tends to use 200%-300% of memory compared with the original file size.
We could recommend the following approaches to reduce memory use:
- Disable caching:
"DataStorageOptions": { "CacheSizeLimit": 0, }
- Turn off KeepDataOnRefresh
. This property is enabled by default and is used to keep a copy of index data during index reload, which requires more RAM while refreshing is in progress.
"DataStorageOptions": { "KeepDataOnRefresh": false, }
Hope you will find our answer helpful.
Regards,
Solomiia
is flexmonster data server keep running with used memory or it release memory when it raise out memory exception?
Hello, Nam!
Thank you for getting back to us.
Kindly note that the system.outofmemoryexception
kills the Data Server process, so it releases all the taken memory.
Hope it helps.
Feel free to contact us in case of any other questions.
Regards,
Solomiia