Troubleshooting Tip: High CPU and MEMORY usage problem
| Description | This article provides CLI commands to correct the High CPU and MEMORY usage Problem in the short term. |
| Scope | High CPU and Memory cause of IPS engine. |
| Solution | IPS Engine using high memory and high CPU cases are different types of cases. Each of them has its own troubleshooting methods.
The command shown below might help to collect some detailed information about the IPS Engine and restart/start/stop/bypass it to decrease the usage temporarily.
Use the following CLI command:
diagnose test application ipsmonitor
IPS Engine Test Usage: 1: Display IPS engine information
For high CPU usage by IPS Engine cases, it is recommended to bypass the engine before restarting or stopping it.
diagnose test application ipsmonitor 5
The most common command used to deal with the IPS Engine consuming high resources is the following, which restarts the IPS process:
If the CPU usage decreases after bypass, that is a strong indication that the volume of traffic inspected is too much for the FortiGate model that is in use.
Command to disable bypass IPS Engine shown below:
diagnose test application ipsmonitor 5
Collect the output below multiple times:
diagnose test application ipsmonitor 44 diagnose sys process pidof ipsengine diagnose sys process pstack <----- PID of IPS Engine from the last command.
Example:
diagnose sys process pidof engine 18012 18013
diagnose sys process pstack 18021 process pstack 18021 Attaching to the target process
To investigate high memory related issues, steps in the following articles can be useful:
Note: Do not run the restart or stop commands during production hours, as it will affect the ongoing sessions. Make sure to run them in the maintenance window.
Related articles: Technical Tip: Basic Troubleshooting for high memory or high CPU usage Technical Tip: Debugs for troubleshooting high CPU issues Technical Tip: IPS engine consumes high CPU after upgrade to FortiOS v7.2.9 and v7.2.10 |
