Re: Memory Leak - Flink / RocksDB ?
Posted by
Vinay Patil on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Memory-Leak-Flink-RocksDB-tp14439p14441.html
Hi
Shashwat,
Are you specifying the RocksDBStateBackend from the flink-conf.yaml or from code?
If you are specifying it from the code, you can try using PredefinedOptions.FLASH_SSD_OPTIMIZED
Also, you can try setting incremental checkpointing ( this feature is in Flink 1.3.0)
If the above does not solve your issue, you can control the memory usage of RocksDB by tuning the following values and check your performance :
DBOptions: (along with the FLASH_SSD_OPTIONS add the following)
maxBackgroundCompactions(4)
ColumnFamilyOptions:
max_buffer_size : 512 MB
block_cache_size : 128 MB
max_write_buffer_number : 5
minimum_buffer_number_to_merge : 2
cacheIndexAndFilterBlocks : true
optimizeFilterForHits: true
I would recommend reading the following documents:
Hope it helps.