it depends a bit what is causing your OutOfMemoryErrors. It might be because you are running very heavy aggregations that create too many aggregation buckets - in that case increasing the heap size might not help and only defer the problem. In general, increasing the heap size will give you more headroom though. If you stay on the same hardware, increasing the heap size means that there is less RAM available for the page cache though so it might be the case that see worse performance. In any case it is hard to accurately predict the impact and I recommend that you run targeted experiments to get hard data but I hope I could provide some pointers.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.