If you are not a Linux oriented user, you can search for tips over the internet.
Or you can simply leverage this little bit of snippet to find out the RAM of server.
But if you need to know how much memory was used by your application.
Then see the value of this sweet function at the end of your run of application.
Everything is awesome.