Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

services-memory (resource-manager)

date_range 09-Dec-23

Syntax

content_copy zoom_out_map
services-memory {
    match {
        threshold threshold;
    }
    then {
        alarm;
        drop-flows;
        fail-close;
        fail-open;
        log;
    }
}

Hierarchy Level

content_copy zoom_out_map
[edit security resource-manager]

Description

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

Options

  • 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.

footer-navigation