I have been getting this
Lack of free swap space on Zabbix server on my aws instance via zabbix monitoring.
I am thinking of creating say 2 Gb of swap space. Do I risk loosing or interfering with anything since it is a live server (being used).
I found some steps that I intend to use as listed below:
- sudo dd if=/dev/zero of=/var/swapfile bs=1M count=2048
- sudo chmod 600 /var/swapfile
- sudo mkswap /var/swapfile
- echo /var/swapfile none swap defaults 0 0 | sudo tee -a /etc/fstab
- sudo swapon -a
Anyone warn me if I am taking a risk with live server? Thank you.