VULTR VPS Servers have memory issues when memory intensive apps are utilized. To fix the issue use a 1GB swap file:
Use dd to create a file we will use for swap:
sudo dd if=/dev/zero of=/swapfile bs=64M count=16
Then we convert to a swapfile:
$ sudo mkswap /swapfile
Set permissions:
$ sudo chmod 600 /swapfile
Backup then edit fstab so setting will take on reboot:
$ sudo cp /etc/fstab /etc/fstab.bak
$ echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
Edit the sysctl.conf file:
$ sudo nano /etc/sysctl.conf
At the bottom of the sysctl.conf file add the following two lines:
vm.swappiness=10
vm.vfs_cache_pressure=50
Then activate the system swap:
$ sudo swapon /swapfile
Now we can look and see the active swap:
free -m
If anyone needs help setting up their masternode for Footy Cash I am on Slack Footy Cash:
https://join.slack.com/t/footycash/shared_invite/MjE5MTU2ODE5MTQyLTE1MDExMTY3NDQtOTAzYjgyNjRkOQ
Daniel244King