limit memory usage of elasticsearch