You have a hard limit of 512 MB of RAM to play with no exceptions. This memory is stored on every dino. Therefore, you will not be able to deploy your application on Heroku, as it supports significant RAM usage.
I rarely see applications that take up a couple of hundred MB of RAM, so you really need to look at the source of the problem.
When using your RAM, even in a typical VPS, it will be difficult for you to start more than two processes at the same time.
Neil middleton
source share