Flushing the pool will
kill your performance because it throws away all of JRuby's compiled code while simultaneously not clearing the JVM reserved code cache. In fact, I just got done fixing an issue where we had something sending a
SIGHUP
to Puppet server, which does exactly this.