LPS-34419 JRuby causing perm space memory leaking

@amosfong

This is the most obvious perm space memory leaking on our production servers, but not necessarily to be the only one. Please patch the server with this, if we run out of perm space again, do another heap dump. I will look for further leakings.