We have updated Flexmonster Software License Agreement, effective as of September 30, 2024. Learn more about what’s changed.

flexmonster data server system.outofmemoryexception error

Answered
nam asked on February 2, 2023

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)

3 answers

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster February 2, 2023

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

Public
nam February 9, 2023

is flexmonster data server keep running with used memory or it release memory when it raise out memory exception?

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster February 9, 2023

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

Please login or Register to Submit Answer