Looking at the previous threads (and in our tests), oom script specified at command line does not work as OOM exception is trapped and converted to RuntimeException. So, what is the best way to stop Solr when it gets in OOM state? The only way I see is to override multiple handlers and do System.exit() from there. Is there a better way?
We are using Solr with default Jetty container. Thanks, CP Mishra