How do I check the maximum amount a RAM a process uses similar to how
$ time mvn package real 0m35.796s user 0m32.925s sys 0m1.559s $ maxmem mvn package 688 MB
Try using GNU
time instead of the built-in.
On CentOS, you would install it with
yum install time then run it with
Note that you need to specify the full path; otherwise the shell will want to use the built-in time