Investigate FortiGate CPU spikes using process samples, session trends, change correlation, and a controlled recovery and validation plan.
CPU, memory, sessions, and symptoms
Process, traffic, and recent changes
Application recovery at comparable load
Start with user impact and a timeline
A high CPU graph is a symptom. The operational problem might be slow new connections, delayed management access, failed authentication, or packet loss. Write down what users observe and when it began before deciding that the firewall needs a reboot.
Capture the model, FortiOS build, uptime, HA role, affected VDOMs, and recent changes. Include security-content updates, a firmware upgrade, a new inspection profile, backup traffic, a monitoring change, and a burst of remote-access users. These are hypotheses to compare with evidence, not automatic explanations.
This is a read-only first-response workflow. Commands are based on vendor documentation and may differ by release. The scenarios below are illustrative. They are not reports of testing on your firewall.
1. Collect a baseline while the symptom exists
Use the following commands to identify the platform and overall resource state, then inspect top processes. The top display refreshes until you exit with q. Record several observations rather than copying a single peak.
Compare CPU with memory, active sessions, new-session rate, and network throughput. A high session count and a high session setup rate describe different workloads. A firewall may handle a large number of quiet sessions while struggling with a rapid burst of short-lived connections.
Record timestamps alongside application response times. If the user problem ends before the sample, label it as a recovery sample rather than treating it as evidence of the incident state. Preserve relevant logs before any remediation that could erase transient evidence.
get system status
get system performance status
diagnose sys top 2 20
2. Separate process pressure from overall CPU pressure
Inspect whether the same process repeatedly dominates the top output or whether the resource pressure is distributed. Process CPU and aggregate CPU can be reported differently across multicore platforms, so do not add percentages casually or assume a single hot worker represents the entire appliance.
A repeatedly busy inspection-related process suggests investigating which policies and traffic types feed that workload. A busy management-related process suggests a different investigation, including monitoring polls or administrative activity. Identify the process's role for the exact release before selecting a corrective action.
For a VM, examine hypervisor CPU scheduling and host contention as a separate layer. The guest's view alone cannot establish that the host has delivered the expected compute resources. Include CPU-ready or equivalent host metrics where your virtualization platform exposes them.
3. Correlate the load with traffic and changes
Build a short incident timeline with columns for time, user symptom, process, session rate, traffic pattern, and change. Compare the minute before the spike with the minute after it. Look for a repeated relationship, such as the same scheduled transfer coinciding with every daily event.
Use traffic analytics or existing logs to identify major sources and policies. Scope a sample to a specific incident window instead of turning on expensive packet-level logging for the entire firewall. If a suspected client creates many connections, confirm its purpose with the endpoint or application owner.
Do not label high-volume activity an attack solely from CPU usage. Backups, vulnerability scans, software deployment, and retry storms can look very different operationally but share a resource symptom. Confirm destination, protocol, rate, and business context before blocking a source.
4. Use a decision table to choose the next check
A brief spike during a known task calls for trend comparison and impact measurement. Sustained load with a repeatable hot process calls for focused policy and process analysis. Load that persists after the traffic burst ends calls for preserving evidence and reviewing release-specific defects with support.
If memory pressure is also present, follow the memory or conserve-mode investigation separately. High CPU does not by itself establish conserve mode. If only new connections fail while established transfers continue, compare connection setup behavior and session-rate trends.
Check acceleration eligibility using model- and release-specific guidance. Features and traffic paths can change which work is offloaded. Do not disable acceleration globally to make a debug easier without considering the extra CPU load that action can create.
5. Make one bounded correction
Prefer the smallest evidence-backed correction. Examples include fixing an excessive monitoring poll rate, rescheduling an approved bulk task, correcting an unintended inspection path, or limiting a confirmed unwanted source through an approved rule. Each requires an owner and a rollback.
Stopping required security inspection, killing an inspection daemon, changing global session timers, and rebooting the appliance can affect many users. They are not generic first-line fixes. If service recovery requires a disruptive action, preserve diagnostic evidence and follow the vendor-supported incident procedure.
An HA failover is also a production change. Check peer health and synchronization before considering it. Moving traffic to a similarly overloaded or unhealthy peer may simply move the outage. Keep console or approved out-of-band access available for the change window.
6. Validate at comparable load
Repeat the original application test and compare results under a workload resembling the incident. Lower CPU at midnight does not prove that a lunchtime issue is fixed. Check new connections, representative VPN traffic, DNS, business applications, and the management plane as appropriate.
Confirm that expected security profiles and logging remain active. Record process trends, session setup behavior, application response, and any new errors after the correction. Remove temporary diagnostic activity when it is no longer needed.
For escalation, provide the exact build, model, topology summary, HA state, timeline, process samples, affected policy IDs, traffic characteristics, and actions already taken. Redact secrets and private user data. This evidence gives support a concrete incident to investigate instead of a screenshot of a CPU percentage.
Questions engineers often ask
Is 100 percent always a failure? Duration, reporting scope, and service impact matter. Is a reboot a fix? It can clear a transient state but does not explain why it happened. Does a larger firewall solve every spike? Capacity matters, but configuration errors, runaway tasks, and software defects still require diagnosis.
Maintain a normal-load baseline for each site. Review capacity using the actual inspection and VPN workload rather than a headline throughput number. The useful outcome is a repeatable explanation of what consumed resources and evidence that the correction preserves both availability and protection.
Official references
Fortinet high CPU troubleshooting
Fortinet CPU and network resources