This article describes the common causes and validation steps for high swap memory usage on vSRX firewalls. High swap utilization may lead to performance degradation and system instability.
Devices experiencing high swap usage may show the following symptoms:
While there are several generic reasons for swap usage on vSRX devices, the most commonly observed causes include:
Frequent automatic configuration backupsContinuous backup operations consume memory resources and can increase swap usage.
Frequent SNMP polling of large datasetLarge or repeated SNMP queries—especially from monitoring tools—can push the system to use swap memory.
Polling using show version detailFetching show version detail frequently consumes more memory;➤ Use show version instead for lightweight polling.
show version detail
show version
How to Verify Swap Usage
1. Check Swap Usage from Junos CLI
> show system processes extensive | match swapSwap: 1024M Total, 768M Used, 256M Free, 75% Inuse
2. Check Swap Usage from Shell
start shell# swapinfoDevice 1K-blocks Used Avail Capacity/dev/gpt/swap 1048576 786588 261988 75%
Important Behavior to UnderstandSwap memory not being released immediately is expected behavior on Linux-based systems (including vSRX).What matters is whether the swap is actively being used (swap-in/out activity).
Check Real-time Swap Activity Using vmstatRun the following command from the shell:
#vmstat 1
Focus on:pi (page-in)po (page-out)
If both values stay near 0, it means the system is not actively swapping, even if swap usage appears high.
Example:# vmstat 1procs memory page disks faults cpur b w avm fre flt re pi po fr sr md0 md1 in sy cs us sy id2 0 0 7.4G 90M 484 0 0 0 472 63 0 0 3 7566 1980 51 1 481 0 0 7.4G 90M 1 0 0 0 0 77 0 0 4 5675 1869 50 1 496 0 0 7.4G 90M 503 0 0 0 572 70 0 0 2 6547 1883 50 1 496 0 0 7.4G 90M 2 0 0 0 0 70 0 0 2 5683 1901 50 1 496 0 0 7.4G 90M 2 0 0 0 0 70 0 0 0 5801 1914 51 2 487 0 0 7.4G 90M 0 0 0 0 0 70 0 0 1 5784 1863 51 0 497 0 0 7.4G 90M 0 0 0 0 0 70 0 0 0 6359 1921 51 0 497 0 0 7.4G 90M 536 0 0 0 572 70 0 0 0 6417 1874 50 0 497 0 0 7.4G 90M 0 0 0 0 0 70 0 0 1 5696 1897 50 2 48