Technical Tip: High memory usage in the fgtlogd process when API queries to add or remove objects.
| Description | This article describes the situation where it has the fgtlogd process has high memory usage when API queries are made to add or remove objects. |
| Scope | FortiGate v7.4.1 |
| Solution |
Configure FortiGate to send logs to FortiAnalyzer:
config log fortianalyzer setting set status enable set server "10.10.10.10" end
FGT # diagnose sys top-mem 99 fgtlogd (246): 2495624kB node (2055): 71900kB wad (2132): 68128kB ipshelper (2084): 33201kB wad (2129): 21295kB cmdbsvr (1969): 18607kB cw_acd (2088): 15765kB wad (2130): 14632kB nsm (2022): 10735kB ... FGT # To fix the issue:
diagnose test application oftpd 20 interval time=0 dev=<FortiGate’s Serial number>
Example: diagnose test application oftpd 20 interval time=0 dev=FGTABC1234567890
To remove the workaround after upgrading the FortiGate to v7.4.9 and above, the following will need to be issued on FortiAnalyzer to re-enable the API:
diagnose test application oftpd 20 interval time=1800 dev=<FortiGate’s Serial number>
Example:
diagnose test application oftpd 20 interval time=1800 dev=FGTABC1234567890 |