OCI’s memory is only 1GB and Swapping is needed. Followings is example of configuration 2GB swapping.
sudo free -m
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo vi /etc/fstab
------------------
------------------
/swapfile swap swap defaults 0 0
------------------
sudo reboot
sudo free -m