MEM_PER_JOB would provide an idea of the memory requirement of the application under test. Based on this and the amount of memory in the system we can use:
$ cabal user-config update -a "jobs: 2"
to configure the cabal jobs so that we do not run out of memory.