Updated on 2026-06-27 GMT+08:00

Configuring YARN Memory Usage Checks

Scenario

If you cannot estimate the exact memory requirements of a submitted application, you can configure the server to enable or disable memory usage checks.

If memory checks are disabled, containers can consume system memory until the node runs out of resources. If memory checks are enabled and a container exceeds its allocated limit, YARN will automatically terminate that container.

Configuration Description

Go to the All Configurations page of YARN by referring to Modifying Cluster Service Configuration Parameters and enter a parameter name in the search box.

Table 1 Parameter description

Parameter

Description

Default Value

yarn.nodemanager.vmem-check-enabled

Whether to enable virtual memory usage detection. If the memory used by a task exceeds the allocated memory size, the task is forcibly stopped.

  • If the value is true, the virtual memory will be checked.
  • If the value is false, the virtual memory will not be checked.

true

yarn.nodemanager.pmem-check-enabled

Whether to enable physical memory usage detection. If the memory used by a task exceeds the allocated memory size, the task is forcibly stopped.

  • If the value is true, the physical memory will be checked.
  • If the value is false, the physical memory will not be checked.

true