Limit Julia Memory

This is basically a question on the still open (but fixed) issue

I’m trying to find the easiest way to limit the memory available for a julia process. The issue above seems to discuss this, but I wasn’t quite sure what the solution is now. Can somebody give me a working example?