Skip to main content
VinayHM
Staff
Aug 21, 2023 7:11 AM UTC

Technical Tip: How to optimize memory by using session timers

Description This article describes how to optimize memory by using session timers.
Scope FortiGate.
Solution

Session timer optimizations:

  1. tcp-halfclose-timer: A state where the server sends fin.
  2. tcp-halfopen-timer: A state where the client sends syn and it is waiting for syn/ack from the server.
  3. tcp-timewait-timer: The TIME-WAIT state is where the application waits for opened socket to close.

 

config system global
    set tcp-halfclose-timer 30           [ default 120 s ]
    set tcp-halfopen-timer 5            [ default 10 s ]
    set tcp-timewait-timer 0            [ default 1 s ]
end

 

config system session-ttl
    set default 300                      [ default 3600 s ]

 

By reducing the session timers and device can quickly remove the cache and it will free up the memory.

    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024