update leveldb parameter to reduce memory usage