This application will give you alert when your application reached certain limit of memory The memory value in the Mega bytes default 1000MB. This application will checkout your system memory about every 30second. if your free space come to 1000mb it will show an alert.
To run this application You need a python and zenity both will come default in ubuntu.
run by python app.py
This is only for linux and tested only in ubuntu 16.04.