Report question

Question: How to make sure Solr/Lucene won't die with java.lang.OutOfMemoryError?