Troubleshooting Tip: High memory usage when adding external threat feeds with a large number of similar patterns
| Description | This article describes an issue in which the WAD daemon on a FortiGate device consumes excessive memory after configuring an external threat feed containing a large number of similar patterns. This behavior may cause the device to enter a hung state. |
| Scope | FortiGate v7.4.8. |
| Solution | When a FortiGuard category external threat feed containing a large number of similar patterns (more than 4,000,000 entries, while still within the supported device limits) is configured and applied to a web filter security profile, the WAD daemon may consume high amount of memory resources. This can eventually cause the device to enter memory conserve mode and become unresponsive. For example
Etc.
config system external-resource
config webfilter profile
diagnose sys top 2 20 In the output below, the WAD worker type 'algo' is seen consuming more memory.
diagnose test application wad 1000
Memory usage increases gradually:
get system performance status | grep Memory
The following errors may be seen on the console of the device:
FWINT2 (profile) # delete T<pid-849 cmdbsvr_cfgsave> [shmf_ptr_from_slabid:346] shmf_filemap_add(fileid=11885, pageid=2) failed: access(/dev/shmfile/11885) failed, error=12(Cannot allocate memory) System event logs for reference:
date="2025-09-12" time="14:39:50" id=7549258814982201269 bid=130331898 dvid=1060 itime=1757698789 euid=3 epid=3 dsteuid=3 dstepid=3 logver=704082795 logid="0100044547" type="event" subtype="system" level="information" action="Add" msg="Add system.external-resource Plotino_Adult" logdesc="Object attribute configured" user="a_920889" ui="ha_daemon" cfgtid=24576231 cfgpath="system.external-resource" cfgobj="Plotino_Adult" cfgattr="uuid[7a00270a-8fff-51f0-acdd-db286eb22a4d]type[domain]category[192]resource[http://X.X.X.X/******]" eventtime=1757698790495591644 tz="-0300" uuid="7a9a23aa-8fff-51f0-38e1-429bc965de69" devid="FG22E1T9********" vd="root" devname="FG22E1" date="2025-09-12" time="14:45:33" id=7549260288155979483 bid=130332568 dvid=1060 itime=1757699132 euid=3 epid=3 dsteuid=3 dstepid=3 logver=704082795 logid="0100022800" type="event" subtype="system" level="critical" msg="The system has activated session fail mode" logdesc="Scan services session failed" service="wad-http(s)-mapi" mode="activated" eventtime=1757699133322738885 tz="-0300" devid="FG22E1T9********" vd="root" devname="FG22E1" date="2025-09-12" time="14:45:33" id=7549260292450944039 bid=130332568 dvid=1060 itime=1757699133 euid=3 epid=3 dsteuid=3 dstepid=3 logver=704082795 logid="0100022011" type="event" subtype="system" level="critical" msg="Kernel enters memory conserve mode" logdesc="Memory conserve mode entered" conserve="on" red="42497 MB" green="39599 MB" total=48292 used=42500 service="kernel" eventtime=1757699133323335300 tz="-0300" devid="FG22E1T9********" vd="root" devname="FG22E1"
These timelines for firmware release are estimated and may be subject to change.
Workaround: Use wildcards to compress similar entries in the threat feed list. |
