MemoryPressureSettings.setConservativeThreshold

Sets the memory limit for the conservative policy to start working.

Sets value as the fraction of the defined memory limit where the conservative policy starts working. This policy will try to reduce the memory footprint by releasing non critical memory.

The threshold must be bigger than 0 and smaller than 1, and it must be smaller than the strict threshold defined in settings. The default value is 0.33.

class MemoryPressureSettings
void
setConservativeThreshold
(
double value
)

Parameters

value double

fraction of the memory limit where the conservative policy starts working.