Description
This article describes how to optimize memory consumption on low and middle-end models of FortiGate (smaller than 100D/E/F).
Every enabled feature on the FortiGate will consume some RAM memory. This may be critical, as the firewall may not have enough processing power for typical firewall tasks.
Scope
FortiGate appliances smaller than 100D/E/F.
Solution
config ips settings
config ips sensor
conf antivirus profile
conf antivirus settings
Adjust IPS process count:
config ips global
set engine-count 1
set exclude-signatures industrial
end
config system autoupdate schedule
set frequency daily
set time 03:00
end
config log memory setting
set status disable
end
config log disk filter
set forward-traffic disable
end
Reducing the cache size is beneficial in environments where memory or performance optimization is a priority, as it ensures the DNS cache remains efficiently managed, preventing excessive resource consumption.
See the following article for more information on the above setting:
Technical Tip: Internet-service-database: On-demand
Advanced steps to optimize MEM utilization:
In addition to the steps above, it is possible to further optimize MEM consumption:
Attention:
Caution should be taken when using the following steps as they affect the overall behavior of the system. They will, therefore, require preliminary analysis, preferably by the TAC engineers.
conf firewall profile-protocol-options
set oversize limit
config system fortiguard
set webfilter cache-ttl
set antispam cache-ttl
set dns cache-ttl
config system global
tcp halfopen-timer <- (And others.)
config system global
system session-ttl
config system global
set miglogd-children 1
set sslvpn-max-worker-count 1
set wad-worker-count 1
set scanunit-count 2 <- scanunit-count value must be in the range of 2-4 or = 0.
end
9. Reduce session-TTL to improve session recycling efficiency:
config system session-ttl
set default 600
config port
edit 1
set protocol 17
set timeout 120
next
end
end
Note:
If the steps above do not produce satisfactory results, consider using a higher-capacity FortiGate.
Related article:
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 2024 Fortinet, Inc. All Rights Reserved.