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

memory (System)

date_range 09-Dec-23

Syntax

content_copy zoom_out_map
memory {
    system {
        alarm;
        frequency (minutes | hours| days) <value>;
        minor event {
            threshold swap usage <value in percentage>;
            action snmp-trap;
        }
        major event {
            threshold swap usage <value in percentage>;
            action [snmp-trap | live-vmcore];
        }
        critical event {
            threshold swap usage <value in percentage>;
            action [snmp-trap | live-vmcore| (RE-restart| RE-switchover) ];
        }
    }
    process (Memory) {
    frequency (minutes | hours| days) <value>;
        minor event {
            threshold <process-name> memory-limit <memory-limit-in MBs>;
            action snmp-trap;
        }
        major event {
            threshold <process-name> memory-limit <memory-limit-in MBs>;
            action [ snmp-trap |live-core | (terminate-process | terminate-process-force)] ;
        }
        critical event {
            threshold <process-name> memory-limit <memory-limit-in MBs>;
            action [ snmp-trap |live-core | (terminate-process | terminate-process-force)] ;
        }
}

Hierarchy Level

content_copy zoom_out_map
[edit system monitor]

Description

Configure the memory monitoring system on your PTX Series and MX Series devices. The memory monitoring system on your device monitors anomalies with respect to the memory utilization of Junos applications and overall system in the control plane of your device. Apart from monitoring the system memory, you can also configure the device to monitor the per-process memory footprint as well to help detect possible leaks and take configured action.

Memory can be exhausted when there is over scaling, for instance when you test a high scale on a device that does support the scale because of physical resource limitations. Memory can also be exhausted when there are temporary spikes for example when a new FIB object is added before the older FIB objects are deleted. These temporary spikes are usually transient and resolve after a while. Also, a memory leak in any one of the applications or even in the kernel can lead to memory exhaustion. So, it is necessary that you monitor memory usage across applications and the kernel.

Starting in Junos OS Release 23.1R1, you can configure the memory monitoring on the SRX Series, QFX Series, and EX Series devices to raise an alarm using the set system monitor memory system alarm command statement. The alarm is raised when the device is running low on memory.

The remaining statements are explained separately.

Options

alarm
Enable system monitor alarm.

Required Privilege Level

system—To view this statement in the configuration.

system-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 20.1R1.

The alarm option is introduced in Junos OS Release 23.1R1.

footer-navigation