Solaris Support Center

Contact Us

How to add a Swap File - Recommended if VPS has only 1GB of RAM

Adding a Swap File to your system can circumvent the necessity for 2GB of RAM, which is now required by the Wallet to operate. A Swap File gets used instead of the RAM and works perfectly fine. It is still recommended to use 2GB to ensure best performance, but this can be used as a workaround.

STEP 1:

Login to your VPS using Putty, or another SSH tool, and enter this command to check if you have a Swap File on the system already:

free -h

You will get values for your Mem(RAM) and Swap(Swap file). You should get a result like this:

Output
total used free shared buff/cache available
Mem:           985M        756M        104M        652K        348M        126M Swap: 0B 0B 0B


If your Swap total is 0, you should go to STEP 2.

If your Swap total is more than 0, you do NOT need to do anything else UNLESS YOU HAVE BEEN EXPERIENCING THE WALLET CRASHING. If your wallet keeps crashing, move on to next step.


STEP 2:

Enter these commands one by one into the terminal window to run add the swap file:


wget https://raw.githubusercontent.com/viscolex/ScriptRepository/master/solaris/addswapfile.sh


sudo bash addswapfile.sh


That's it! The script will do all the necessary steps. You can confirm that it work by entering this command:


free -h

You will get values for your Mem(RAM) and Swap(Swap file). After this procedure, you should see 2.0G as the total for Swap.