this seems to keep it under control for me. even on 6.2.1 they'll creep to 70% depending on what is enabled.
This resets IPS every 6 hours and keeps mem around 55-60%, which I can live with.
:
config system auto-script
edit "IPSReset"
set interval 21600
set repeat 0
set start auto
set script "diagnose test application ipsmonitor 99"
next
end
--------------------------------------------------------------------------------------------

Check if there is new software available. Usually, memory leak issues are quickly traced down and fixed with the next minor upgrade.
Read the Release Notes! If you are running the latest avaiable software the main branch, there are 2 options:



  1. downgrade - I try to avoid it, as it's a messy solution
  2. schedule auto-restart of a process


I'll focus on the second solution. In many cases, you can use it untill a new software version is released.

I'll write a simple script that is executed every 12 hours:



:
config system auto-script
  edit restart_ipsmonitor
    set interval 43200
    set repeat 356
    set start auto
    set script 'diag test app wad 99'
  next
end
That script will automatically, every 12 hours, restart a wad process. Simple, but effective.
Remember to remove it after a software upgrade to the verison which resolves this bug.