Minimizing process's memory usage
There's been a couple of threads about this issue on SuperUser. I was just looking mostly for information on the ulimit command but that apparently doesn't work, it seems like there may be some solutions on that link though.