Created on 09-28-2023 10:39 PM Edited on 09-28-2023 10:40 PM By Anthony_E
Description |
Swap memory is usually where the kernel moves inactive or less frequently used data from RAM to free up physical RAM for more critical FortiSOAR processes. There might be a case where, at times, even the savior swap memory can become full.
Generally, it is possible to address this issue by either identifying and terminating resource-intensive processes or, more easily, by increasing the swap space.
This article describes how to quickly increase swap space on a FortiSOAR instance. |
Scope | FortiSOAR v6.x v7.x. |
Solution |
$ free -gh
$ sudo fallocate -l 1G /swapfile_extend_1GB
Then, secure the swap file by restricting permissions on it. Like that, only root can access it.
$ sudo chmod 600 /swapfile_extend_1GB
$ sudo mkswap /swapfile_extend_1GB
After formatting the file as a swap file, enable it to activate the new swap file.
$ sudo swapon /swapfile_extend_1GB
$ sudo vi /etc/fstab We can use the grep command to confirm the configuration for the newly added swap file. $ grep swap /etc/fstab
$ free -gh
A swap file has been successfully created and the system has now additional space, which can help to improve the performance when RAM usage is high. |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.