If your server doesn’t have swap, which you can check on your server by running the free command, then you could add swap rather than upgrading your server:
free