Very large retained heap size for org.jruby.RubyRegexp$RegexpCache in JRuby Rails App
问题 We have analysed a heap dump file for our application (running on Tomcat with jruby 1.7.8). It shows us that the retained heap size is very large (439,459,128) for the class org.jruby.RubyRegexp$RegexpCache. This is 48% of our memory usage Looking at the source code for that file it is 3 final static object created at startup (patternCache / quotedPatternCache / preprocessedPatternCache) This seems to be a pretty core part of JRuby. My question is, is it normal to have such a large percentage