swapoff/swapon when script is running

449 Views Asked by At

Sometime the swap memory hit 100% and the running script (PHP) is considerably slower. I'd like to ask in which scenario it is okay to run the command swapoff -a ; swapon -a to clear up the swap memory so that the running script is not affected, and in which scenario is it affected?

0

There are 0 best solutions below