ElasticSearch pre-flight checklist
asquera.de
asquera.de
1. Your OS will use free memory as a filesystem cache. Ideally, your index is being served entirely from cache. Usually, your working dataset is maybe 1/3 of the size of the index, so if your index is 6GB on disk, you'll typically want to leave 2-6GB unallocated. iostat is your friend.
2. You need enough heap. More than enough heap hits diminishing returns quickly. I wouldn't trust ES with less than 2GB, and I've never seen it need more than 8GB. GCs will be less frequent with a larger heap (even up to 30GB), but that's really the only benefit. I'd make sure your index fits in RAM before expanding the heap.
More about GC: http://www.slideshare.net/aszegedi/everything-i-ever-learned...