I actually wrote a blog on how I keep an eye on JVM garbage collecting at<p><a href="http:&#x2F;&#x2F;gitsense.github.io&#x2F;blog&#x2F;realtime-process-monitoring.html" rel="nofollow">http:&#x2F;&#x2F;gitsense.github.io&#x2F;blog&#x2F;realtime-process-monitoring.h...</a><p>My indexers are designed to automatically shutdown, if they are spending more than 30% of their time doing garbage collecting, in the last 10 minutes. If they shutdown on purpose, my background Perl script will restart them.<p>However, if they shutdown X number of times in a row, my Perl script won&#x27;t restart them.  Multiple consecutive shutdowns, usually means I&#x27;m pushing the system too hard and I&#x27;ll need to tweak my indexers thread settings.