FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
bkarl
Staff
Staff
Article Id 304981
Description

This article describes how to optimize memory due to reduce the memory consumption for FGR-60F FortiGates in the second, third and fourth generation. This configuration only applies for an specific FortiGate models.

Scope FortiGateRugged-60F, FortiGateRugged-60F-2G/3G/4G.
Solution

The following are some configuration adjustments to reduce and optimize memory usage when low-end models with UTM have high memory usage.

 

Increase memory-use-threshold:

 

config system global    set memory-use-threshold-extreme 97    set memory-use-threshold-green 90    set memory-use-threshold-red 94end

 

Or schedule an update at off-peak time. For example:

 

config system autoupdate schedule    set frequency daily    set time 03:00end

 

Or reduce worker count. For example:

 

config system global

set miglogd-children 1

set sslvpn-max-worker-count 1

set wad-worker-count 1

set scanunit-count 2

end

 

The IPS process count can be configured:

 

config ips global    set engine-count 1    set cp-accel-mode none    set exclude-signatures noneendconfig log memory setting    set status disableendconfig log disk filter    set forward-traffic disableend

 

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    endend

 

Reduce dns-cache:

 

config system dns    set dns-cache-limit 300end

 

Disabled the security rating submission:

 

config system global    set security-rating-result-submission disable    set security-rating-run-on-schedule disableend

 

Reduce internet-service-database:

config sys global

set internet-service-database on-demand

end

 

exe update-ffdb-on-demand

 

Note:

Consider these low-end models have only 2GB of RAM. It is therefore very likely this device will enter conserve mode quickly if there are many sessions in progress for FortiGate.