Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


services-memory (resource-manager)


Hierarchy Level


Configure resource manager services-memory options to control the behavior of the device based on memory load.


  • threshold threshold-Configure the threshold limit to let resource-manager take actions when the service memory load exceeds the threshold. The range is 1 to 100 percent.

  • fail-close-This configuration closes a session when there is not enough memory for a service during session setup. This configuration drops a packet if there is not memory during fast path. This is the default configuration.

  • fail-open-This configuration opens a infra session even if there is not enough memory for a service to allocate memory.

  • drop-flows-When you mark a session as a drop-flow, it bypasses the first path for each new packet, which matches the original drop session for next 4 seconds only. This configuration drops the packets that match the drop-flows.

  • log-This configuration logs messages when the resource threshold is exceeded and falls back under the threshold, and what is the protective action taken.

  • alarm-This configuration sends an SNMP trap when the memory load exceeds the threshold.

Required Privilege Level

security—To view this in the configuration.

security-control—To add this to the configuration.

Release Information

Statement introduced in Junos OS Release 20.4R1.