This problem occurs when your application attempts to use more memory than is available to it.
As indicated in the Shinyapps.io User Guide, you can solve this issue by increasing the instance size and running your application again.
If the problem persists even after you increase to maximum instance size (1 GB for free accounts), you need to upgrade your account.