Add max memory for jruby