Magento requires you to have a minimum of 2GB RAM. In case you have less, Magento recommends creating a swap file. It’s a system file to create temporary storage on a drive or hard disk.