I'm noticing a lot of memory leaking when running the following looped benchmark of RubyGems booting:
jruby -Xparser.summary -Xparser.prism.wasm -e 'loop { t = Time.now; ruby = org.jruby.Ruby.newInstance; ruby.loadService.require("rubygems"); ruby.tearDown; $stderr.puts Time.now - t }'
This quickly goes up past 1GB heap on my machine and doesn't seem to slow down or respond to forced GCs.
When I looked into this in the past it seemed like the leak might be related to jruby-openssl and the BouncyCastle provide getting re-registered many times and never cleaned up, but a new analysis is needed.
I'm noticing a lot of memory leaking when running the following looped benchmark of RubyGems booting:
This quickly goes up past 1GB heap on my machine and doesn't seem to slow down or respond to forced GCs.
When I looked into this in the past it seemed like the leak might be related to jruby-openssl and the BouncyCastle provide getting re-registered many times and never cleaned up, but a new analysis is needed.