The sstat command will display the resources that your job has been using. In particular it will show the maximum amount of memory used by your job (useful if you are unsure of how much memory a process will use).
To use sstat on a job:
sstat --format=MaxRSS -j 1290232.batch
The “MaxRSS” field is the maximum amount of physical memory used by a job:
root@node0:~# sstat --format=MaxRSS -j 1290232.batch MaxRSS ---------- 129277940K