Set arenas.dirty_decay_ms and arenas.muzzy_decay_ms to indicated number of milliseconds. A value of 0 (the default) results in dirty / muzzy memory pages being released right away to the OS, while a higher value will result in a time-based decay. See the jemalloc docs for more information
It’s best to set this at the start of your application.
Number of milliseconds to set for jemalloc decay conf parameters. Note that this change will only affect future memory arenas