Created on
‎12-04-2024
10:08 PM
Edited on
‎12-11-2024
05:00 PM
By
qyah
Description | This article provides a comprehensive guide to managing memory on FortiGate, focusing on long-term strategies to prevent conserve mode and ensure optimal performance. |
Scope | FortiGate. |
Solution |
Why Long-Term Focus is Needed: Conserve mode on FortiGate devices can be triggered by various factors, including traffic patterns, functions, policies, and features. However, three primary categories contribute to conserve mode:
Understanding Memory Leaks: A memory leak occurs when a program allocates memory but fails to release the memory back to the system when the process no longer needs the memory. This can happen due to:
To prevent the conserve mode, the administrator needs to understand the memory consumption and trends over time. This involves:
Memory Consumption: Review memory consumption using the command:
Memory: 2040712k total, 1282352k used (62.8%), 439432k free (21.5%), 318928k freeable (15.7%)
F4 # get system performance status | grep sessions Average sessions: 15 sessions in 1 minute, 13 sessions in 10 minutes, 13 sessions in 30 minutes Maximal sessions: 18 sessions in 1 minute, 19 sessions in 10 minutes, 21 sessions in 30 minutes Average session setup rate: 0 sessions per second in last 1 minute, 0 sessions per second in last 10 minutes, 0 sessions per second in last 30 minutes Maximal session setup rate: 2 sessions per second in last 1 minute, 2 sessions per second in last 10 minutes, 2 sessions per second in last 30 minutes Average NPU sessions: 0 sessions in last 1 minute, 0 sessions in last 10 minutes, 0 sessions in last 30 minutes Maximal NPU sessions: 0 sessions in last 1 minute, 0 sessions in last 10 minutes, 0 sessions in last 30 minutes
F4 # diag sys top-mem 20 wad (2132): 106106kB node (2013): 99512kB ipshelper (2037): 33463kB
Preventive Actions:
Scenarios: The following scenario describes how to read, interpret, and build an action plan
Scenario 1: High Memory Consumption during High Traffic
Scenario 2: Memory consumption increases over time.
Scenario 3: Memory Spikes During FortiGuard Updates or Configuration Changes
Conclusion: Effective memory management is crucial to prevent the conserve mode on FortiGate devices. By understanding baseline memory consumption, identifying specific processes, and automating monitoring, the user can take proactive steps to ensure optimal performance and prevent conserve mode.
Related documents: Troubleshooting Tip: Conserve mode due to IPS Engine or WAD Troubleshooting Tip: High memory and High CPU general script using Tera Term Technical Tip: FortiGate is entering into Conserve Mode during FortiGuard Updates Technical Tip: How to stop and restart the IPS engine, verify status Technical Tip: How to optimize the Memory consumption Technical Tip: Use a new FortiOS mechanism to automatically restart WAD workers |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.