I'm having problems due to an uncontrolled memory increase in my application even if I have removed the not-necessary image layers.
I have created my application based on osgEarth that loads and unloads at runtime several, potentially huge, image layers in various formats (mainly ECW and TIF). In order to save memory (this is my goal) I load and unload the various layers depending on the current view.
I can't load all the image layers once at startup since they will saturate the memory in a short time (the entire ECW dataset alone occupies 40 GB on disk...).
I have verified that the various image layers are removed (using the method getImageLayers of osgEarth::Map) as expected. However the memory of the application does not decrease accordingly.
Occasionally, after some manual zoom-in + zoom-out sequences the memory seems to be partially released, but it starts increasing again when moving the map.
My configuration is the following:
Compiler: MSVC2015 64 bit.
What can I check to ensure that the memory is released?
but unfortunately (again...) my map configuration already manages a TMS up to level 15 and only the last level occupies nearly 50GB on disk. The remaining part of the maps (ECWs and TIFs) cannot be converted to TMS since it is required to zoom up to level 20...and only the ECW TMS would occupy nearly 50 TB...which is unfeasible for my application since I have space limitations of about 256 GB.