Control ram usage

That's the OS caching things, not ES.

If ES is crashing then it may be because it needs more heap