Limit / Measure Juliaprogram Memory / RAM consumption

This thread might help. I was going to suggest looking at /proc//statm but that is Linux specific