原文地址: https://www.elastic.co/guide/en/elasticsearch/reference/7.7/_heap_size_check.html, 原文档版权归 www.elastic.co 所有
IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Heap size checkedit
If a JVM is started with unequal initial and max heap size, it can be
prone to pauses as the JVM heap is resized during system usage. To avoid
these resize pauses, it’s best to start the JVM with the initial heap
size equal to the maximum heap size. Additionally, if
bootstrap.memory_lock
is enabled, the JVM
will lock the initial size of the heap on startup. If the initial heap
size is not equal to the maximum heap size, after a resize it will not
be the case that all of the JVM heap is locked in memory. To pass the
heap size check, you must configure the heap size.