Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance decrease / memory usage increase between 1.7 and 9.1 #4011

Closed
estolfo opened this issue Jul 12, 2016 · 0 comments
Closed

Performance decrease / memory usage increase between 1.7 and 9.1 #4011

estolfo opened this issue Jul 12, 2016 · 0 comments

Comments

@estolfo
Copy link

estolfo commented Jul 12, 2016

I've noticed the performance of the Ruby driver and Mongoid's test suites decreasing with JRuby versions following 1.7 and am looking for ideas on how to investigate.

The Ruby driver's test suite on travis can be seen here.

  • The test suite runs in 1 - 2 minutes on MRI (performance is not hugely different between MRI versions)
  • JRuby 1.7: takes from 3 - 4 minutes
  • JRuby 9.1.2.0: it takes from 7 - 10 minutes

Mongoid's test suite shows the same trend but uses a lot of memory on JRuby 9.1.2.0. I have a branch for testing Mongoid on JRuby and comparing the performance to MRI here

  • I've set the jruby-openssl gem version to 0.9.17 on that branch, so this issue doesn't seem to be the culprit.
  • The branch has the JRUBY_OPTS Xmx-- setting at 1G

While I can continue to increase the limit until the process doesn't run out of memory, the performance is surprising. I've done some profiling on some of the most common Model methods in Mongoid but haven't found any valuable information yet.

I'd welcome any ideas you might have, thanks!

@estolfo estolfo closed this as completed Jul 12, 2016
@enebo enebo added this to the Invalid or Duplicate milestone Aug 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants